mirror of
https://github.com/discourse/discourse.git
synced 2025-03-28 07:59:23 +08:00
FIX: Couldn't route to the default route with a query param
This commit is contained in:
parent
ca20560d1f
commit
44ddc113e7
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user