mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
11 lines
400 B
JavaScript
11 lines
400 B
JavaScript
import { registerUnbound } from "discourse-common/lib/helpers";
|
|
import getUrl from "discourse-common/lib/get-url";
|
|
import deprecated from "discourse-common/lib/deprecated";
|
|
|
|
registerUnbound("get-url", (value) => getUrl(value));
|
|
registerUnbound("base-url", () => {
|
|
deprecated("Use `{{base-path}}` instead of `{{base-url}}`");
|
|
return getUrl("");
|
|
});
|
|
registerUnbound("base-path", () => getUrl(""));
|