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/widgets
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
..
actions-summary.js.es6 FEATURE: Flag count in post menu 2019-05-06 16:13:31 -04:00
avatar-flair.js.es6 Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
button.js.es6 FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
category-link.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
component-connector.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
connector.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
decorator-helper.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
embedded-post.js.es6 FIX: Do not replace text of collapsed ignore posts (#7422) 2019-04-24 13:54:46 +01:00
emoji.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
footer-nav.js.es6 UI: Footer nav fixes 2019-04-15 15:25:40 -04:00
glue.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
hamburger-categories.js.es6 DEV: Do not use concatenation in translations 2018-10-03 11:59:21 +05:30
hamburger-menu.js.es6 FIX: Back button shenanigans when redirecting from index routes 2019-06-21 14:42:01 -04:00
hbs-compiler.js.es6 DEV: enable no-alert & no-console eslint rules 2018-11-14 23:17:56 +01:00
header-contents.js.es6 DEV: Upgrade our widget handlebars compiler 2019-05-02 15:47:57 -04:00
header-topic-info.js.es6 UX: Default user facing routes to /g instead of /groups. (#7042) 2019-02-21 13:44:25 +08:00
header.js.es6 Set input and textarea font size to 16px on iOS (#7480) 2019-05-07 10:44:43 -04:00
home-logo.js.es6 FIX: Properly support defaults for upload site settings. 2019-03-13 16:36:57 +08:00
hooks.js.es6 FIX: better node check for clickoutside in widgets (#7573) 2019-05-20 12:45:33 +02:00
link.js.es6 DEV: Add data-topic-id to more elements containing titles. 2018-11-27 13:05:27 +11:00
menu-panel.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
notification-item.js.es6 FIX: add support for custom/plugin notification title attribute 2019-06-07 09:09:16 +08:00
post-admin-menu.js.es6 UX: Replace staff notice icon with user-shield. 2019-04-23 10:37:33 +03:00
post-cooked.js.es6 DEV: prevents post-cooked decorators to leak between tests (#7744) 2019-06-11 10:02:10 +02:00
post-edits-indicator.js.es6 FEATURE: Show edit indicator on review queue 2019-05-03 11:21:33 -04:00
post-gap.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
post-links.js.es6 SECURITY: updates lodash from 1.3.0 to 4.17.5 (#7546) 2019-05-16 10:34:19 +02:00
post-menu.js.es6 UX: show like icon on archived posts (#7775) 2019-06-21 20:47:32 +05:30
post-placeholder.js.es6 UX: Changed post stream placeholder to animation (#7434) 2019-04-26 17:29:48 +01:00
post-small-action.js.es6 FIX: ensures post-small-action is using timezone to display dates 2019-05-29 08:45:28 +08:00
post-stream.js.es6 FIX: Issue with incorrect heights when cloaking plugin content in posts 2019-05-13 11:29:21 -04:00
post.js.es6 FEATURE: Flag count in post menu 2019-05-06 16:13:31 -04:00
poster-name.js.es6 UX: Default user facing routes to /g instead of /groups. (#7042) 2019-02-21 13:44:25 +08:00
private-message-map.js.es6 DEV: Upgrade our widget handlebars compiler 2019-05-02 15:47:57 -04:00
raw-html.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
search-menu-controls.js.es6 UX: disable browser's autocomplete in search menu 2019-02-06 17:06:23 +01:00
search-menu-results.js.es6 UX: various tweaks to search-menu (#7114) 2019-03-08 09:23:44 +01:00
search-menu.js.es6 UX: Do not close login modal and search menu on outside mouse up event. (#7366) 2019-04-23 13:01:44 +10:00
time-gap.js.es6 FIX: Alignment for small-actions, gap, removing unneeded clearfix 2019-01-21 17:57:47 -05:00
toggle-topic-summary.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
topic-admin-menu.js.es6 FIX: btn class was duplicated on admin-menu-buttons (#7555) 2019-05-16 14:37:53 +02:00
topic-map.js.es6 FIX: topic-map spec with VDOM and i18n plural (#6564) 2018-11-05 12:02:18 +01:00
topic-status.js.es6 DEV: Added qunit test functions and did minor refactoring 2019-03-13 18:38:27 +05:30
topic-timeline.js.es6 FIX: don't hide back button at the bottom of timeline (#7544) 2019-05-15 19:02:48 +02:00
user-menu.js.es6 FIX: Back button shenanigans when redirecting from index routes 2019-06-21 14:42:01 -04:00
user-notifications-large.js.es6 FIX: Consolidated like notifications links to wrong user on user page. 2019-01-16 15:55:18 +08:00
user-notifications.js.es6 FIX: Do not update last seen notification ID when forced to enable 2FA." (#7222) 2019-03-21 09:27:22 +01:00
widget.js.es6 UX: Do not close login modal and search menu on outside mouse up event. (#7366) 2019-04-23 13:01:44 +10:00