2017-06-14 13:57:58 -04:00
|
|
|
QUnit.module("lib:discourse");
|
2015-10-21 13:13:19 -04:00
|
|
|
|
2017-06-14 13:57:58 -04:00
|
|
|
QUnit.test("getURL on subfolder install", assert => {
|
2015-10-21 13:13:19 -04:00
|
|
|
Discourse.BaseUri = "/forum";
|
2017-06-14 13:57:58 -04:00
|
|
|
assert.equal(Discourse.getURL("/"), "/forum/", "root url has subfolder");
|
|
|
|
assert.equal(Discourse.getURL("/u/neil"), "/forum/u/neil", "relative url has subfolder");
|
|
|
|
});
|