Current Behavior
After some attempts clicking the browser's back button or the Flarum logo while in an article, the back button will stay at the top left and the article title will stay as the tab title.
Here is a video I captured:
https://youtu.be/VjUpZh6Sy60
Steps to Reproduce
Expected Behavior
The back button should disappear immediately from top left after the click to the browser's back button or the Flarum logo and "Flarum Community" should replace the topic title on the tab title.
Screenshots


Environment
Flarum Community
https://discuss.flarum.org
Edited post and title to include that the bug also happens after a click on the Flarum logo.
Thanks for the detailed report 馃憤 was able to reproduce the issue with your instructions.
I suspect the issue is that the AJAX request for loading the discussion is finishing after the index page is rendered, so the followup discussion page logic (that which shows the back button and changes the document.title) executes on the index page.
GIF by @datitisev (originally posted in another issue):

As @tobscure pointed out, the issue is the AJAX request finishing after the user changes the page.
Here's another GIF showing the bug with Chrome imitating a Slow 3G connection with DevTools.
The title gets set to the discussion page's title when the AJAX request finishes.

Do we have a solution to this fundamental problem?
It needs to be clearly defined, first. I guess, most asynchronous actions starting on one page should be canceled when navigating to other pages?
Most helpful comment
Do we have a solution to this fundamental problem?
It needs to be clearly defined, first. I guess, most asynchronous actions starting on one page should be canceled when navigating to other pages?