The name of the topic disappears in the header on try.discourse.org

AI-generated summary

The discussion on try.discourse.org addresses an issue where the topic title disappears in the header when scrolling to the bottom of a page, particularly after refreshing. Stranik reports the problem, noting it’s more noticeable after a page refresh. Stephen suggests it might be a regression. jesus2099 explains this is related to the new “smart header” feature, which changes the header based on scroll position, but only on mobile. Stephen clarifies it also occurs on desktop at certain widths. jesus2099 confirms the issue after testing and notes it’s a new feature that will be improved. david agrees, attributing it to incorrect mobile detection. sam confirms the issue and promises a fix. Johani confirms the fix has been implemented via a specific commit and thanks the reporter.

First post

We go to the last

https://try.discourse.org/t/the-room-appreciation-topic/289/6

This is especially noticeable if you refresh the page. Something is wrong with the behavior.

2 likes

Wasn’t this fixed recently? Regression?

Maybe yes.

Discourse 2.2.0.beta4 - 80398d0b8f247459aefee06767f257c5d6fc5846
https://try.discourse.org

That’s the normal behaviour of the smart header (very new feature).

When you are in the middle of a topic, the header shows a mini logo, the topic title and category, etc. instead of the website header.
This way we know what topic we are being reading.


But when you are at the top of the page, it displays the site header (as the topic title should be visible, at the top of the page).

And when you are at the very bottom of the page, and that you are no longer really in the topic, as are now in the Suggested Topics section, then here it also reverts to the site title.

1 like

Except that’s not strictly true, it only does it below certain browser widths.

3 likes

I could not reproduce at first but indeed now if I go to your link and then I press End, it’s good but now I press F5 and indeed it’s no good (site title). Then I press End again and it’s back to good (topic title).

This will certainly be improved, it’s a very very new (great) feature.

3 likes

I am seeing the same thing, it looks like the mobile detection is not quite right.

cc @Johani

4 likes

Confirmed, we should not be triggering any of this code on desktop, we will get it fixed quickly.

7 likes

Should be fixed via

https://github.com/discourse/discourse/commit/c4fca3625543da7f9d60baa664ffe19def35d497

Thanks for reporting @Stranik :+1:

11 likes

This topic was automatically closed after 31 hours. New replies are no longer allowed.