This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests
Penar Musaraj 2704a02e3a
FIX: In-page anchor links were broken in subfolder setups (#18250)
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.
2022-09-15 08:09:34 -04:00
..
acceptance DEV: update yes/no confirmation dialogs (#18181) 2022-09-14 11:06:56 -04:00
fixtures DEV: Refactor self-delete dialog (#18180) 2022-09-12 09:45:53 -04:00
helpers DEV: Add model transformer plugin API (#18081) 2022-08-25 15:41:58 +03:00
integration DEV: Add a tab for watching notifications to the experimental user menu (#18240) 2022-09-13 20:52:02 +03:00
unit FIX: In-page anchor links were broken in subfolder setups (#18250) 2022-09-15 08:09:34 -04:00
active-plugins.js.erb DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
core-tests.js DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
index.html DEV: Compile markdown-it-bundle with ember-cli (#18104) 2022-08-29 19:11:59 +01:00
plugin-tests.js.erb DEV: Transpile all plugin js by default (#17175) 2022-06-21 22:07:10 +02:00
setup-tests.js DEV: Abort qunit tests when clicking in the toolbar (#17989) 2022-08-18 23:32:38 +01:00
test-boot-ember-cli.js DEV: Skip loading plugin JS when running only core tests (#18047) 2022-08-23 10:25:07 +01:00