FIX: Support root paths that omit the trailing slash and have QPs

This commit is contained in:
Robin Ward 2020-07-01 14:54:19 -04:00
parent 76d5e54aab
commit 8bc61e84a7
1 changed files with 1 additions and 1 deletions

View File

@ -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]}`;