discourse/app/assets/javascripts
David Taylor d7d4612b2d
FIX: Subfolder sites rewriting URLs to root domain on initial load (#8932)
The `DiscourseLocation.initState` function was accidently renamed in 0431942f (select-kit-2) to `initOptions`. This means that the ember router does not automatically call the function after the router is initialized.

For a long time, we have been calling the `initState` function in the `init` function of discourse-location, which caused an imperceptible URL change to the the root domain, before switching back to the correct subfolder URL when ember called `initState`. This commit removes that call from the initializer, so `initState` is only called once (by ember).

Relevant ember code: https://github.com/emberjs/ember.js/blob/v3.12.2/packages/@ember/-internals/routing/lib/system/router.ts#L695-L699
2020-02-12 09:36:46 +00:00
..
admin FIX: makes user-selector use real booleans (#8909) 2020-02-11 20:20:12 +01:00
confirm-new-email SECURITY: 2FA with U2F / TOTP 2020-01-15 11:27:12 +01:00
discourse FIX: Subfolder sites rewriting URLs to root domain on initial load (#8932) 2020-02-12 09:36:46 +00:00
discourse-common DEV: adds afterRender decorator (#8864) 2020-02-10 08:13:13 +01:00
docs
ember-addons DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
locales DEV: Import ember ENV instead of Ember.testing (#8305) 2019-11-07 11:20:35 -06:00
pretty-text FIX: Disable preloading audio + video when secure media enabled (#8922) 2020-02-11 11:49:58 +10:00
select-kit FIX: correctly excludes current user in user-chooser (#8928) 2020-02-11 20:41:18 +01:00
wizard DEV: enforces style-concatenation linting rule (#8888) 2020-02-10 08:13:50 +01:00
activate-account.js.no-module.es6
admin.js.erb
application.js REFACTOR: Remove InputValidation which was simply an Ember.Object 2019-11-11 15:48:56 -05:00
auto-redirect.js.no-module.es6
deprecated.js
discourse-loader.js DEV: Ember linting - disallow Ember.* variable usage (#8782) 2020-02-05 10:14:42 -06:00
discourse-objects.js
discourse.js.es6 FIX: getURL on a subfolder site should ignore prefix in middle of URL (#8794) 2020-01-27 17:51:46 +00:00
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 REFACTOR: Attach resize controls to images from the markdown pipeline (#8314) 2019-11-12 17:32:37 -03:00
onpopstate-handler.js.no-module.es6
polyfills.js FIX: moves back padStart/padEnd to core polyfills (#8714) 2020-01-14 10:54:39 +01:00
preload-application-data.js.no-module.es6 DEV: Add DEBUG_PRELOADED_APP_DATA to log pre-loaded JSON in development (#8873) 2020-02-06 13:14:33 +10:00
preload-store.js.es6 FIX: More Promise uses that were not imported 2019-11-19 15:58:40 -05:00
pretty-text-bundle.js DEV: Remove pretty_text import hack & still work server-side (#8266) 2019-10-31 11:54:46 -05:00
print-page.js
service-worker.js.erb DEV: Bump uglifyjs (#7834) 2019-10-09 10:02:49 -03:00
set-prototype-polyfill.js
template_include.js DEV: Remove unsafe-eval from development CSP (#8569) 2019-12-30 12:17:12 +00:00
template_include.js.erb DEV: Remove unsafe-eval from development CSP (#8569) 2019-12-30 12:17:12 +00:00
vendor.js DEV: select-kit 2 (#7998) 2020-02-03 14:22:14 +01:00
wizard-application.js DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
wizard-start.js.no-module.es6
wizard-vendor.js FIX: ensure s2 is working with wizard (#8886) 2020-02-07 10:00:39 +01:00