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
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
..
adapters FIX: Use new tag routes (#8683) 2020-01-21 19:23:08 +02:00
components Improvements to group mentions (#8927) 2020-02-12 10:11:10 +02:00
controllers DEV: Eliminate "post bounce" after creating a post 2020-02-11 14:04:46 -05:00
helpers FIX: ensure s2 is working with wizard (#8886) 2020-02-07 10:00:39 +01:00
initializers FEATURE: Use new Badging API 2020-01-10 13:41:35 -03:00
lib FIX: Subfolder sites rewriting URLs to root domain on initial load (#8932) 2020-02-12 09:36:46 +00:00
mixins DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
models FIX: Make category slug validation less strict (#8915) 2020-02-11 17:01:12 +02:00
pre-initializers FEATURE: Add Tactile feedback on likes 2020-01-30 12:01:52 -03:00
raw-views DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
routes FIX: Show detailed error messages for category pages. (#8832) 2020-02-06 15:32:12 +11:00
services DEV: Fix function prototype deprecations (#8681) 2020-01-16 18:56:53 +01:00
templates FIX: date was not mutated when changing it in change-timestamp modal (#8935) 2020-02-12 09:12:36 +01:00
widgets DEV: Use scheduleOnce correctly (#8865) 2020-02-05 21:21:00 +03:00
mapping-router.js.es6 DEV: Remove Discourse.Site in favor of import (#8344) 2019-11-13 12:13:47 -05:00