mirror of
https://github.com/discourse/discourse.git
synced 2025-01-22 16:35:31 +08:00
FIX: Support root paths that omit the trailing slash and have QPs
This commit is contained in:
parent
81ce3c8e50
commit
3a14bd6b14
|
@ -12,7 +12,7 @@ const BareRouter = EmberRouter.extend({
|
||||||
url = rewritePath(url);
|
url = rewritePath(url);
|
||||||
const params = url.split("?");
|
const params = url.split("?");
|
||||||
|
|
||||||
if (params[0] === "/") {
|
if (params[0] === "/" || params[0] === "") {
|
||||||
url = defaultHomepage();
|
url = defaultHomepage();
|
||||||
if (params[1] && params[1].length) {
|
if (params[1] && params[1].length) {
|
||||||
url = `${url}?${params[1]}`;
|
url = `${url}?${params[1]}`;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user