FIX: Bug when linking to anchors

This commit is contained in:
Robin Ward 2016-09-20 11:13:40 -04:00
parent a85f1dc473
commit a26e0df0c7
1 changed files with 1 additions and 1 deletions

View File

@ -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);