Merge pull request #10519 from gschlager/get-url

Fixes for getURL() in subfolders and basePath in translations
This commit is contained in:
Gerhard Schlager
2020-08-25 11:42:50 +02:00
committed by GitHub
parent e66f95de3a
commit dac0e5b3cc
9 changed files with 22 additions and 9 deletions

View File

@ -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",