mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 04:18:23 +00:00
2704a02e3a
The key fix in this commit is that it removes `this.replaceState(path)` for anchor-only URLs. We still intercept those routing changes to properly calculate the scroll position of the anchor via `jumpToElement`, but we no longer use the Ember router to override the browser's history. This fixes the subfolder issue and also lets the browser maintain its history correctly. The commit also includes a small refactor to the `jumpToElement` helper to facilitate stubbing in tests.