discourse/app/assets
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
..
images FIX: images:compress rake task 2019-03-15 15:23:57 +01:00
javascripts FIX: Subfolder sites rewriting URLs to root domain on initial load (#8932) 2020-02-12 09:36:46 +00:00
stylesheets UX: do not enlarge emojis in polls (#8934) 2020-02-12 08:37:32 +01:00