From f140c4d499421370c2f8926c7ecd06775c115682 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 5 Jul 2019 09:40:19 +0200 Subject: [PATCH] FIX: ensures routing to / with query string works (#7859) --- app/assets/javascripts/discourse/lib/url.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/url.js.es6 b/app/assets/javascripts/discourse/lib/url.js.es6 index 35af1414b9d..bba1db7ebb0 100644 --- a/app/assets/javascripts/discourse/lib/url.js.es6 +++ b/app/assets/javascripts/discourse/lib/url.js.es6 @@ -441,7 +441,7 @@ const DiscourseURL = Ember.Object.extend({ // The default path has a hack to allow `/` to default to defaultHomepage // via BareRouter.handleUrl let transition; - if (path === "/") { + if (path === "/" || path.substring(0, 2) === "/?") { router._routerMicrolib.updateURL(path); transition = router.handleURL(path); } else {