Refresh-after-logout goes to homepage

AI-generated summary

Refresh-after-logout issue

Bas reported an issue where, after logging out and back in, clicking the “refresh” button redirects to the homepage instead of refreshing the current page. This is problematic when testing with different users, as it requires constant switching between profiles.

Bas provided a repro path for the issue using Safari on Mac OS. In response, sam expressed hesitation to implement a fix, citing potential permission issues that would need to be accounted for. However, Bas countered that this is precisely what they want to test.

Given the issue is now labeled as a feature, Bas requested renaming the “refresh” button to allow for manual refreshing of the URL instead of being redirected to the homepage.

Repro path (Safari, Mac OS):

  • In Tab.A, go to a community URL (e.g. https://meta.discourse.org/t/welcome-to-meta-discourse-org/1)
  • Open a new tab, Tab.B
  • In Tab.B, log out
  • In Tab.B, log back in (in my case, using Google Oauth)
  • Switch to Tab.A
  • You’ll get a notification that you are logged out, with a big “refresh” button.
  • Click the button

Expected behaviour

Actual behaviour

2 « J'aime »

The reason for filing this is that it is a proper annoyance when you’re testing with different users and want to see how they see certain things. Makes you constantly switch (using different browser profiles would help I guess)

1 « J'aime »

hmmm … I am a maybe on this.

Cause if you are on a page you have no permission to access then the refresh will result in an error, so we would have to account for that, which is complicated.

I think if you are doing this kind of stuff use multiple browsers or profiles. That is the way to go.

3 « J'aime »

But that’s exactly what I want to test :upside_down_face:

1 « J'aime »

But alright, since this is now labeled as a feature instead of a bug. Can you at least rename the button? That way I can manually refresh the URL instead of being tricked :slight_smile: