FIX: Couldn't route to the default route with a query param

This commit is contained in:
Robin Ward 2016-12-21 11:18:22 -05:00
parent ca20560d1f
commit 44ddc113e7

View File

@ -6,7 +6,9 @@ const BareRouter = Ember.Router.extend({
location: Ember.testing ? 'none': 'discourse-location',
handleURL(url) {
if (url === "/") { url = defaultHomepage(); }
const params = url.split('?');
if (params[0] === "/") { url = defaultHomepage(); }
return this._super(url);
}
});