discourse/app
Robin Ward fc63f0d316 FIX: page:changed was sometimes reporting the wrong URL
(This change could be considered a little risky so we should keep an eye
on it.)

The core issue here is that sometimes as far as the router was concerned
we had transitioned to a route even if a Topic model was still in the
process of loading. In this case the callback could not retrieve the
correct title yet because it had not loaded.

This fix returns a promise from `setupController` when visiting a topic,
which will have the router block until the topic is loaded. This means
that the transition never triggers until the topic title is present.

Note: adding a test for this is basically impossible - it was super hard
to reproduce even in a browser.
2020-07-28 11:48:40 -04:00
..
assets FIX: page:changed was sometimes reporting the wrong URL 2020-07-28 11:48:40 -04:00
controllers FIX: use allowlist and blocklist terminology (#10209) 2020-07-27 10:23:54 +10:00
helpers Revert "PERF: Move highlightjs to a background worker, and add result cache (#10191)" 2020-07-15 13:52:35 +01:00
jobs FIX: use allowlist and blocklist terminology (#10209) 2020-07-27 10:23:54 +10:00
mailers FIX: Add strip_secure_urls method to GroupSmtpMailer 2020-07-24 13:55:07 +10:00
models FIX: Cooked snippet of raw in Topic.similar_to. 2020-07-28 15:20:18 +08:00
serializers FIX: use allowlist and blocklist terminology (#10209) 2020-07-27 10:23:54 +10:00
services FIX: Reduce number of terms injected for host lexeme. 2020-07-27 15:29:59 +08:00
views FIX: uses topic title for published page head title (#10312) 2020-07-27 15:09:12 +02:00