mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
FIX: ensures routing with hash doesn't stuck history (#7872)
* FIX: ensures routin with hash doesnt stuck history Original issue: https://meta.discourse.org/t/hash-anchor-in-url-prevents-further-url-updates/122068/4 Basically when the path has a hash, state would be null, and nothing would happen. * Update app/assets/javascripts/discourse/lib/discourse-location.js.es6 Co-Authored-By: Régis Hanol <regis@hanol.fr>
This commit is contained in:
parent
f89bd55576
commit
142344e45d
@ -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);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user