mirror of
https://github.com/discourse/discourse.git
synced 2024-12-06 05:53:39 +08:00
11 lines
339 B
JavaScript
11 lines
339 B
JavaScript
|
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}}`");
|
||
|
return getUrl("");
|
||
|
}
|