A platform for community discussion. Free, open, simple.
FIX: ensures routing with hash doesn't stuck history (#7872)
Joffrey JAFFEUX142344e45d8a
diff --git a/app/assets/javascripts/discourse/lib/discourse-location.js.es6 b/app/assets/javascripts/discourse/lib/discourse-location.js.es6index 4fd1c6628ef..3843831588f 100644--- a/app/assets/javascripts/discourse/lib/discourse-location.js.es6+++ b/app/assets/javascripts/discourse/lib/discourse-location.js.es6@@ -101,7 +101,7 @@ const DiscourseLocation = Ember.Object.extend({const state = this.getState();path = this.formatURL(path);- if (state && state.path !== path) {+ if (!state || state.path !== path) {this.replaceState(path);}},