# Logout redirect?

**URL:** https://meta.discourse.org/t/logout-redirect/69158
**Category:** Support
**Created:** [August 31, 2017, 5:45pm UTC](https://meta.discourse.org/t/logout-redirect/69158 "2017-08-31T17:45:46Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![n4ru](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@n4ru](https://meta.discourse.org/u/n4ru)
#### Post date: [August 31, 2017, 5:45pm UTC](https://meta.discourse.org/t/logout-redirect/69158/1 "2017-08-31T17:45:46Z")

</div>

I may be blind here, but after looking through the settings and searching around for an existing topic, I can’t seem to find a way to redirect users to a page after logging out. I know I can do it programmatically, but is there a simple setting in the existing admin UI that can set a custom page to redirect to upon users logging out?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [August 31, 2017, 5:56pm UTC](https://meta.discourse.org/t/logout-redirect/69158/2 "2017-08-31T17:56:13Z")

</div>

> [@n4ru](#):
>
> is there a simple setting in the existing admin UI that can set a custom page to redirect to upon users logging out?

Yes, search for ‘logout’ on the admin/settings page.

 ![31](https://global.discourse-cdn.com/meta/original/3X/e/0/e009ab81a19f1b1ea730360558ac44ab21a2c64f.png)

---

<div class="post-metadata">

### Author: ![n4ru](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@n4ru](https://meta.discourse.org/u/n4ru)
#### Post date: [August 31, 2017, 9:29pm UTC](https://meta.discourse.org/t/logout-redirect/69158/3 "2017-08-31T21:29:19Z")

</div>

This didn’t seem to work. Is there anyway to verify the setting took effect? It’s showing up in the settings page, but actually logging out doesn’t redirect to that page.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 1, 2017, 3:30am UTC](https://meta.discourse.org/t/logout-redirect/69158/4 "2017-09-01T03:30:36Z")

</div>

> [@n4ru](#):
>
> Is there anyway to verify the setting took effect?

Try logging out while looking at the network tab of your browser’s developer tools. Select ‘preserve log’ on the network tab.

---

<div class="post-metadata">

### Author: ![n4ru](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@n4ru](https://meta.discourse.org/u/n4ru)
#### Post date: [September 5, 2017, 6:19pm UTC](https://meta.discourse.org/t/logout-redirect/69158/5 "2017-09-05T18:19:17Z")

</div>

Does logout\_redirect not work when sso is turned on? I can’t seem to get the changes to activate despite them sticking and saving in settings.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 5, 2017, 6:26pm UTC](https://meta.discourse.org/t/logout-redirect/69158/6 "2017-09-05T18:26:31Z")

</div>

> [@n4ru](#):
>
> Does logout\_redirect not work when sso is turned on?

Are you redirecting to the SSO provider? If so, try a different logout URL with SSO enabled to see if there could be an issue with that. I once had an issue with the logout redirect set to the SSO provider on a private forum, but I can’t reproduce the problem with the latest version of Discourse.

---

<div class="post-metadata">

### Author: ![n4ru](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@n4ru](https://meta.discourse.org/u/n4ru)
#### Post date: [September 5, 2017, 7:06pm UTC](https://meta.discourse.org/t/logout-redirect/69158/7 "2017-09-05T19:06:03Z")

</div>

I have it redirected to a page on the forum but that doesn’t seem to be redirecting properly.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 5, 2017, 7:47pm UTC](https://meta.discourse.org/t/logout-redirect/69158/8 "2017-09-05T19:47:31Z")

</div>

> [@n4ru](#):
>
> I have it redirected to a page on the forum but that doesn’t seem to be redirecting properly.

Is your forum set to ‘login required’? If so, with SSO enabled the user will be automatically logged back in before being redirected to your logout page.

Is the logout page accessible to anonymous users? If not, the user will get a ‘page not found’ notice after logging out.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 18, 2019, 10:56am UTC](https://meta.discourse.org/t/logout-redirect/69158/9 "2019-09-18T10:56:52Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 30, 2023, 2:00pm UTC](https://meta.discourse.org/t/logout-redirect/69158/10 "2023-04-30T14:00:17Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [April 30, 2023, 2:10pm UTC](https://meta.discourse.org/t/logout-redirect/69158/11 "2023-04-30T14:10:26Z")

</div>


