mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:19:10 +00:00
FIX: Bug when linking to anchors
This commit is contained in:
parent
a85f1dc473
commit
a26e0df0c7
@ -121,7 +121,7 @@ const DiscourseURL = Ember.Object.extend({
|
||||
}
|
||||
|
||||
// Scroll to the same page, different anchor
|
||||
const m = /#(.+)$/.exec(path);
|
||||
const m = /^#(.+)$/.exec(path);
|
||||
if (m) {
|
||||
jumpToElement(m[1]);
|
||||
return this.replaceState(path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user