mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 17:23:44 +08:00
FIX: ensures routing to / with query string works (#7859)
This commit is contained in:
parent
1bb258ab49
commit
f140c4d499
|
@ -441,7 +441,7 @@ const DiscourseURL = Ember.Object.extend({
|
||||||
// The default path has a hack to allow `/` to default to defaultHomepage
|
// The default path has a hack to allow `/` to default to defaultHomepage
|
||||||
// via BareRouter.handleUrl
|
// via BareRouter.handleUrl
|
||||||
let transition;
|
let transition;
|
||||||
if (path === "/") {
|
if (path === "/" || path.substring(0, 2) === "/?") {
|
||||||
router._routerMicrolib.updateURL(path);
|
router._routerMicrolib.updateURL(path);
|
||||||
transition = router.handleURL(path);
|
transition = router.handleURL(path);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user