mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Routing to default homepage with query params was broken
This commit is contained in:
@@ -8,7 +8,12 @@ const BareRouter = Ember.Router.extend({
|
||||
handleURL(url) {
|
||||
const params = url.split('?');
|
||||
|
||||
if (params[0] === "/") { url = defaultHomepage(); }
|
||||
if (params[0] === "/") {
|
||||
url = defaultHomepage();
|
||||
if (params[1] && params[1].length) {
|
||||
url = `${url}?${params[1]}`;
|
||||
}
|
||||
}
|
||||
return this._super(url);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user