2018-11-06 18:26:52 -05:00
|
|
|
import { registerUnbound } from "discourse-common/lib/helpers";
|
|
|
|
import getUrl from "discourse-common/lib/get-url";
|
2020-08-25 05:42:50 -04:00
|
|
|
import deprecated from "discourse-common/lib/deprecated";
|
2018-11-06 18:26:52 -05:00
|
|
|
|
|
|
|
registerUnbound("get-url", (value) => getUrl(value));
|
2020-08-25 05:42:50 -04:00
|
|
|
registerUnbound("base-url", () => {
|
|
|
|
deprecated("Use `{{base-path}}` instead of `{{base-url}}`");
|
|
|
|
return getUrl("");
|
|
|
|
});
|
|
|
|
registerUnbound("base-path", () => getUrl(""));
|