mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 05:47:31 +08:00
02f6db4e59
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. |
||
---|---|---|
.. | ||
admin | ||
discourse | ||
discourse-common | ||
docs | ||
ember-addons | ||
locales | ||
pretty-text | ||
select-kit | ||
wizard | ||
activate-account.js.no-module.es6 | ||
admin.js.erb | ||
application.js | ||
auto-redirect.js.no-module.es6 | ||
deprecated.js | ||
discourse-loader.js | ||
discourse-objects.js | ||
discourse.js.es6 | ||
embed-application.js.no-module.es6 | ||
ember_include.js.erb | ||
ember_jquery.js | ||
ember-shim.js | ||
env.js | ||
google-tag-manager.js.no-module.es6 | ||
google-universal-analytics.js.no-module.es6 | ||
main_include_admin.js | ||
markdown-it-bundle.js | ||
omniauth-complete.js.no-module.es6 | ||
onpopstate-handler.js.no-module.es6 | ||
plugin-third-party.js.erb | ||
plugin.js.erb | ||
polyfills.js | ||
preload-application-data.js.no-module.es6 | ||
preload-store.js.es6 | ||
pretty-text-bundle.js | ||
print-page.js | ||
service-worker.js.erb | ||
set-prototype-polyfill.js | ||
template_include.js.erb | ||
vendor.js | ||
wizard-application.js | ||
wizard-start.js.no-module.es6 | ||
wizard-vendor.js |