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
|
// Scroll to the same page, different anchor
|
||||||
const m = /#(.+)$/.exec(path);
|
const m = /^#(.+)$/.exec(path);
|
||||||
if (m) {
|
if (m) {
|
||||||
jumpToElement(m[1]);
|
jumpToElement(m[1]);
|
||||||
return this.replaceState(path);
|
return this.replaceState(path);
|
||||||
|
|
Loading…
Reference in New Issue