From 35ff5d6796e2148c619df71cad7b791a53dc3062 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 4 Jul 2017 12:44:53 -0400 Subject: [PATCH] FIX: Naving to root URL was broken --- app/assets/javascripts/discourse/lib/url.js.es6 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/assets/javascripts/discourse/lib/url.js.es6 b/app/assets/javascripts/discourse/lib/url.js.es6 index dbca177d9dd..1275f06f25e 100644 --- a/app/assets/javascripts/discourse/lib/url.js.es6 +++ b/app/assets/javascripts/discourse/lib/url.js.es6 @@ -221,6 +221,11 @@ const DiscourseURL = Ember.Object.extend({ // TODO: Extract into rules we can inject into the URL handler if (this.navigatedToHome(oldPath, path, opts)) { return; } + // Navigating to empty string is the same as root + if (path === '') { + path = '/'; + } + return this.handleURL(path, opts); },