mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-24 20:20:16 +08:00
12 lines
376 B
JavaScript
Vendored
12 lines
376 B
JavaScript
Vendored
import deprecated from "discourse-common/lib/deprecated";
|
|
import getUrl from "discourse-common/lib/get-url";
|
|
import { registerRawHelper } from "discourse-common/lib/helpers";
|
|
|
|
registerRawHelper("base-url", baseUrl);
|
|
|
|
export default function baseUrl() {
|
|
deprecated("Use `{{base-path}}` instead of `{{base-url}}`", {
|
|
id: "discourse.base-url",
|
|
});
|
|
return getUrl("");
|
|
}
|