mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Merge pull request #10519 from gschlager/get-url
Fixes for getURL() in subfolders and basePath in translations
This commit is contained in:
parent
e66f95de3a
commit
dac0e5b3cc
9 changed files with 22 additions and 9 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue