# Refresh-after-logout goes to homepage

**URL:** <https://meta.discourse.org/t/refresh-after-logout-goes-to-homepage/75523>\
**Category:** Feature\
**Created:** [December 6, 2017, 1:57pm UTC](https://meta.discourse.org/t/refresh-after-logout-goes-to-homepage/75523 "2017-12-06T13:57:27Z")\
**Posts on this page:** 5\
**Page:** 1

## AI-generated summary

**Refresh-after-logout issue**

[Bas](/t/-/75523/1) 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](/t/-/75523/1) provided a repro path for the issue using Safari on Mac OS. In response, [sam](/t/-/75523/3) expressed hesitation to implement a fix, citing potential permission issues that would need to be accounted for. However, [Bas](/t/-/75523/4) countered that this is precisely what they want to test.

Given the issue is now labeled as a feature, [Bas](/t/-/75523/5) requested renaming the "refresh" button to allow for manual refreshing of the URL instead of being redirected to the homepage.

<div class="post-metadata">

**Author:** ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)\
**Post date:** [December 6, 2017, 1:57pm UTC](https://meta.discourse.org/t/refresh-after-logout-goes-to-homepage/75523/1 "2017-12-06T13:57:27Z")

</div>

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](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**

- Page refreshes, I stay at [https://meta.discourse.org/t/welcome-to-meta-discourse-org/1](https://meta.discourse.org/t/welcome-to-meta-discourse-org/1)

**Actual behaviour**

- I’m navigated to [meta.discourse.com](http://meta.discourse.com)

---

<div class="post-metadata">

**Author:** ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)\
**Post date:** [December 6, 2017, 3:33pm UTC](https://meta.discourse.org/t/refresh-after-logout-goes-to-homepage/75523/2 "2017-12-06T15:33:41Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [December 7, 2017, 11:16pm UTC](https://meta.discourse.org/t/refresh-after-logout-goes-to-homepage/75523/3 "2017-12-07T23:16:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)\
**Post date:** [December 8, 2017, 8:11am UTC](https://meta.discourse.org/t/refresh-after-logout-goes-to-homepage/75523/4 "2017-12-08T08:11:44Z")

</div>

> [@sam](#):
>
> 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.

But that’s exactly what I want to test 🙃

---

<div class="post-metadata">

**Author:** ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)\
**Post date:** [December 8, 2017, 8:12am UTC](https://meta.discourse.org/t/refresh-after-logout-goes-to-homepage/75523/5 "2017-12-08T08:12:33Z")

</div>

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 🙂
