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 81ce3c8e50
commit 3a14bd6b14

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