# Change default redirect target url at LogoutView

**URL:** https://discuss.openedx.org/t/change-default-redirect-target-url-at-logoutview/13261
**Category:** Development
**Tags:** lms, palm, how-to, quince, tutor
**Created:** [June 22, 2024, 2:46pm UTC](https://discuss.openedx.org/t/change-default-redirect-target-url-at-logoutview/13261 "2024-06-22T14:46:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vahidch75](https://avatars.discourse-cdn.com/v4/letter/v/74df32/32.png) [@vahidch75](https://discuss.openedx.org/u/vahidch75)
#### Post date: [June 22, 2024, 2:46pm UTC](https://discuss.openedx.org/t/change-default-redirect-target-url-at-logoutview/13261/1 "2024-06-22T14:46:41Z")

</div>

By default when you didn’t specify the `next` or `redirect_url` param to logout view, there is a hard-coded URL `/` that redirects successful logouts to LMS. how to change this behavior without touching the openedx source code?(I’m using the openedx as my upstream so I can’t change the openedx source)

---

<div class="post-metadata">

### Author: ![kosolapovlb](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@kosolapovlb](https://discuss.openedx.org/u/kosolapovlb)
#### Post date: [June 24, 2024, 5:48am UTC](https://discuss.openedx.org/t/change-default-redirect-target-url-at-logoutview/13261/2 "2024-06-24T05:48:30Z")

</div>

> [@vahidch75](#):
>
> redirect\_url

If you about this “LOGIN\_REDIRECT\_URL” variable in `edx-platform/lms/envs/common.py`, then why not to write simple Tutor plugin and use Tutor patch [Template patch catalog — Tutor documentation](https://docs.tutor.edly.io/reference/patches.html#lms-env).

---

<div class="post-metadata">

### Author: ![vahidch75](https://avatars.discourse-cdn.com/v4/letter/v/74df32/32.png) [@vahidch75](https://discuss.openedx.org/u/vahidch75)
#### Post date: [June 24, 2024, 8:33am UTC](https://discuss.openedx.org/t/change-default-redirect-target-url-at-logoutview/13261/3 "2024-06-24T08:33:03Z")

</div>

No . its the logout process not login. alghough I tested you’re suggestion and not worked. even the more meaningful settings `settings.LOGOUT_REDIRECT_URL` not worked…

---

<div class="post-metadata">

### Author: ![MMarei](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/mmarei/32/6383_2.png) [@MMarei](https://discuss.openedx.org/u/MMarei)
#### Post date: [June 24, 2024, 8:43am UTC](https://discuss.openedx.org/t/change-default-redirect-target-url-at-logoutview/13261/4 "2024-06-24T08:43:33Z")

</div>

If you are using the MFE, consider chaning it from the MFE\_CONFIG dictionary, there is a variable there that reflects the LOGOUT\_URL .

> <https://github.com/overhangio/tutor-mfe/blob/master/tutormfe/patches/openedx-lms-production-settings>

---

<div class="post-metadata">

### Author: ![vahidch75](https://avatars.discourse-cdn.com/v4/letter/v/74df32/32.png) [@vahidch75](https://discuss.openedx.org/u/vahidch75)
#### Post date: [June 29, 2024, 6:53am UTC](https://discuss.openedx.org/t/change-default-redirect-target-url-at-logoutview/13261/5 "2024-06-29T06:53:50Z")

</div>

I need a way to fix this globally either in MFEs and the legacy theme(indigo) , everywhere the logout is used. the method you mentioned is not practicall for me
