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/lib
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
..
concerns FIX: Post blurb incorrect when search contains a phrase match. 2019-03-26 17:01:52 +08:00
after-transition.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
ajax-error.js.es6 FIX: Show error message if message exists 2019-05-09 22:12:51 +02:00
ajax.js.es6 FEATURE: Use Beacon API for tracking clicks. (#7483) 2019-05-07 16:37:43 +10:00
app-events.js.es6 Upgrade to Ember 3.7.0 2019-03-20 14:43:25 +01:00
autocomplete.js.es6 FEATURE: Add ignore duration selection for user notifications preferences page (#7269) 2019-03-29 13:33:08 +00:00
autosize.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
category-hashtags.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
category-tag-search.js.es6 SECURITY: updates lodash from 1.3.0 to 4.17.5 (#7546) 2019-05-16 10:34:19 +02:00
clean-dom.js.es6 FEATURE: Display notification count in title for logged in users (#7184) 2019-03-18 12:59:47 +00:00
click-track.js.es6 FIX: Skip attachments in click track. 2019-05-08 11:55:31 +03:00
computed.js.es6 REFACTOR: computed lib (#7702) 2019-06-05 15:50:22 +02:00
copy-text.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
d-popover.js.es6 make eslint happy 2019-05-23 12:51:40 +02:00
debounce.js.es6 Add ES6 support to more files 2015-08-13 10:49:08 -04:00
decimal-adjust.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
desktop-notifications.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
dirty-keys.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
discourse-location.js.es6 REFACTOR: discourse-location lib (#7700) 2019-06-05 11:46:36 +02:00
export-csv.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
export-result.js.es6 FEATURE: download user posts archive 2014-12-24 15:13:48 +05:30
eyeline.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
formatter.js.es6 DEV: unpin Prettier version, apply to YAML files 2019-01-17 13:05:39 -05:00
hash.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
highlight-syntax.js.es6 FEATURE: allow custom HighlightJS languages 2019-01-02 19:07:36 -05:00
highlight-text.js.es6 FIX: Letters between words incorrectly highlighted within post. 2019-04-03 15:57:51 +08:00
intercept-click.js.es6 FIX: an <a> with a target of _blank wants a new window 2019-02-19 14:44:30 -08:00
is-element-in-viewport.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
key-value-store.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
keyboard-shortcuts.js.es6 SECURITY: updates lodash from 1.3.0 to 4.17.5 (#7546) 2019-05-16 10:34:19 +02:00
lazy-load-images.js.es6 FIX: Memory Leaks when decorating posts (#7749) 2019-06-11 17:21:23 +02:00
lightbox.js.es6 UX: replace lightbox loading text with spinner (#7393) 2019-04-17 10:24:03 -07:00
link-category-hashtags.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
link-lookup.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
link-mentions.js.es6 UX: Default user facing routes to /g instead of /groups. (#7042) 2019-02-21 13:44:25 +08:00
link-tag-hashtag.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
load-script.js.es6 FIX: multiple loadScript to the same url may resolve prematurely (#6474) 2018-10-11 08:55:36 +08:00
lock-on.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
logout.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
mobile.js.es6 FIX: Prevent input zooming in iOS 2019-04-15 13:05:43 -04:00
notification-levels.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
offset-calculator.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
optional-service.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
page-tracker.js.es6 FIX: prevents google to track certain pages (#7463) 2019-04-30 15:57:51 +02:00
page-visible.js.es6 DEV: unpin Prettier version, apply to YAML files 2019-01-17 13:05:39 -05:00
plugin-api.js.es6 FIX: Couldn't modify a widget that wasn't in the registry 2019-06-18 12:28:18 -04:00
plugin-connectors.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
posts-with-placeholders.js.es6 DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592) 2019-05-27 10:15:39 +02:00
push-notifications.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
pwa-utils.js.es6 FEATURE: disable native share API on non tablets/phones 2019-05-02 13:18:29 +10:00
quote-state.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
quote.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
raw-templates.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
register-topic-footer-button.js.es6 FIX: more efficient topic-footer-button-api (#7535) 2019-05-13 17:04:24 +02:00
render-tag.js.es6 DEV: add replaceTagRenderer to pluginApi 2019-02-20 14:52:56 -05:00
render-tags.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
render-topic-featured-link.js.es6 Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
reports-loader.js.es6 FIX: prevents race condition where the same report is loaded multiple times (#6953) 2019-01-25 19:29:45 +01:00
round.js.es6 FEATURE: 2 new reports: time to first response, topics with no response 2015-06-22 19:46:51 +02:00
safari-hacks.js.es6 FIX: _.include is no longer imported from lodash 2019-05-17 08:58:39 +10:00
screen-track.js.es6 FIX: Check postStream.gaps exists before trying postSteam.gaps.after 2019-06-11 23:48:21 +01:00
search.js.es6 UX: various tweaks to search-menu (#7114) 2019-03-08 09:23:44 +01:00
sharing.js.es6 UX: puts back share-panel as floating pane on post actions (#7066) 2019-02-26 14:15:25 +01:00
show-modal.js.es6 DEV: lint file 2019-06-18 17:12:55 +10:00
static-route-builder.js.es6 DEV: s/this._super()/this._super(...arguments) (#6908) 2019-01-19 10:05:51 +01:00
svg-sprite-loader.js.es6 Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
tag-hashtags.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
text-direction.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
text.js.es6 FIX: Don't convert :) into Emoji when emojis or emoji shurtcuts are disabled 2019-05-22 11:44:39 +02:00
theme-selector.js.es6 DEV: enable no-alert & no-console eslint rules 2018-11-14 23:17:56 +01:00
throttle.js.es6 SECURITY: updates lodash from 1.3.0 to 4.17.5 (#7546) 2019-05-16 10:34:19 +02:00
to-markdown.js.es6 FEATURE: Add base62 sha1 to cooked data attribute 2019-06-11 11:15:45 +10:00
tooltip.js.es6 FEATURE: unified popover implementation (#7244) 2019-03-26 15:43:27 +01:00
transform-post.js.es6 FIX: Broken test, also typoed property 2019-05-30 14:27:28 -04:00
url.js.es6 FIX: Back button shenanigans when redirecting from index routes 2019-06-21 14:42:01 -04:00
user-activation.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
user-search.js.es6 Support multi-group user search 2019-05-30 08:45:20 +08:00
utilities.js.es6 FIX: File size text should not be part of link. 2019-06-11 15:21:06 +08:00