# Logout link / URL?

**URL:** https://meta.discourse.org/t/logout-link-url/145688
**Category:** Support
**Created:** [March 26, 2020, 3:40pm UTC](https://meta.discourse.org/t/logout-link-url/145688 "2020-03-26T15:40:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Uninen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uninen/32/66432_2.png) [@Uninen](https://meta.discourse.org/u/Uninen)
#### Post date: [March 26, 2020, 3:40pm UTC](https://meta.discourse.org/t/logout-link-url/145688/1 "2020-03-26T15:40:00Z")

</div>

I have a integration for Discourse which updates the user profile upon each login. I’ve now run into a problem where I need to teach people how to log out as the logout button is quite well hidden. It also seems to be a JavaScript function so I haven’t found a way to place it more prominently on the site.

Is there a way to duplicate the logout button somewhere, or better yet, to provide user a proper link for logging put that one could share easily?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [March 26, 2020, 3:41pm UTC](https://meta.discourse.org/t/logout-link-url/145688/2 "2020-03-26T15:41:49Z")

</div>

Did you look at this?

> [@Add logout button to top menu](https://meta.discourse.org/t/add-logout-button-to-top-menu/143250/5):
>
> I got it! I won’t promise that it’ll work for you, but this might do it for you. This is common/header.html \<script type="text/discourse-plugin" version="0.8"\> const { iconNode } = require("discourse-common/lib/icon-library"); const { logout } = require("discourse/lib/logout"); api.decorateWidget("header-buttons:before", helper =\> { if (!Discourse.User.current()) return; currentUser = Discourse.User.current(); let container = api.container, lo…

---

<div class="post-metadata">

### Author: ![Uninen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uninen/32/66432_2.png) [@Uninen](https://meta.discourse.org/u/Uninen)
#### Post date: [March 26, 2020, 3:43pm UTC](https://meta.discourse.org/t/logout-link-url/145688/3 "2020-03-26T15:43:37Z")

</div>

So sorry, I somehow missed that, I spent some time trying to find solutions but only found posts for login.

Thank You!

Edit: I still think that this kind of feature should definitely work without JavaScript as well. It would be really good to have a proper URL for this, even if it was behind a feature toggle. It doesn’t even have to trigger from GET, the page could just have a form on it with a button to log 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: [April 25, 2020, 3:43pm UTC](https://meta.discourse.org/t/logout-link-url/145688/4 "2020-04-25T15:43:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
