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
Robin Ward 02f6db4e59 FIX: Back button shenanigans when redirecting from index routes
This is a problem that has long plagued Discourse. The root issue here
is that we have to implement our own link click handler, because
Discourse allows users to create HTML blobs of content with links, and
when those links are clicked they must be handled by the Ember router.

This always involved a certain amount of use of private Ember APIs which
of course evolved over time.

The API has more or less stabilized in the last two years, however we
have hacks in our URLs to handle a dynamic root path, depending on how
forums have set up their filters and in what order.

This patch adds a special case for the root path so we needn't update
the URL ourselves otherwise, which preserves the back button on index
routes. The update call would otherwise insert an extra history event if
a route redirected on transition, breaking the back button.
2019-06-21 14:42:01 -04:00
..
adapters FEATURE: Allow users to customize bonuses for reviewable types 2019-04-03 11:18:34 -04:00
components FIX: Some toolbar operations weren't triggering the change event 2019-06-20 13:35:12 -04:00
controllers SECURITY: Add confirmation screen when logging in via email link 2019-06-17 16:18:37 +01:00
helpers FEATURE: Hide Reviewable scores, change score filter to Priority 2019-05-07 14:05:23 -04:00
initializers FIX: use correct name for selectable_avatars_enabled site setting 2019-06-19 13:18:16 -04:00
lib FIX: Back button shenanigans when redirecting from index routes 2019-06-21 14:42:01 -04:00
mixins FIX: prevents appEvents to leak (#7714) 2019-06-06 12:33:52 +02:00
models FIX: Do not live-load posts from ignored users 2019-06-11 12:07:14 +01:00
pre-initializers DEV: s/this._super()/this._super(...arguments) (#6908) 2019-01-19 10:05:51 +01:00
raw-views DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592) 2019-05-27 10:15:39 +02:00
routes FIX: 'status' param change not filtering the topics in tag route. 2019-06-20 17:27:32 +05:30
services FIX: correct translations for logs error rate notice (#7622) 2019-05-28 22:10:51 +03:00
templates FIX: Some toolbar operations weren't triggering the change event 2019-06-20 13:35:12 -04:00
widgets FIX: Back button shenanigans when redirecting from index routes 2019-06-21 14:42:01 -04:00
mapping-router.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00