mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 21:25:24 +08:00
Merge pull request #10519 from gschlager/get-url
Fixes for getURL() in subfolders and basePath in translations
This commit is contained in:
@ -61,6 +61,12 @@ QUnit.test("getURL on subfolder install", assert => {
|
||||
"relative url has subfolder"
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
getURL(""),
|
||||
"/forum",
|
||||
"relative url has subfolder without trailing slash"
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
getURL("/svg-sprite/forum.example.com/svg-sprite.js"),
|
||||
"/forum/svg-sprite/forum.example.com/svg-sprite.js",
|
||||
|
Reference in New Issue
Block a user