FIX: ensures routing to / with query string works (#7859)

This commit is contained in:
Joffrey JAFFEUX 2019-07-05 09:40:19 +02:00 committed by GitHub
parent 1bb258ab49
commit f140c4d499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {