FIX: Support root paths that omit the trailing slash and have QPs
This commit is contained in:
parent
76d5e54aab
commit
8bc61e84a7
|
@ -12,7 +12,7 @@ const BareRouter = EmberRouter.extend({
|
|||
url = rewritePath(url);
|
||||
const params = url.split("?");
|
||||
|
||||
if (params[0] === "/") {
|
||||
if (params[0] === "/" || params[0] === "") {
|
||||
url = defaultHomepage();
|
||||
if (params[1] && params[1].length) {
|
||||
url = `${url}?${params[1]}`;
|
||||
|
|
Loading…
Reference in New Issue