# Change login link param (return\_path)

**URL:** https://meta.discourse.org/t/change-login-link-param-return-path/207246
**Category:** Development
**Created:** [October 27, 2021, 12:45pm UTC](https://meta.discourse.org/t/change-login-link-param-return-path/207246 "2021-10-27T12:45:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tjot](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@tjot](https://meta.discourse.org/u/tjot)
#### Post date: [October 27, 2021, 12:45pm UTC](https://meta.discourse.org/t/change-login-link-param-return-path/207246/1 "2021-10-27T12:45:41Z")

</div>

I’ve implemented [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) in my forum with success, but now I need to display terms of service.  
My idea was to show a modal with terms and an accept button, something like a cookie consent), but I couldn’t find that option (plugin) so I must create a workaround.

Let me describe my idea:

Currently, when someone enters my website, let’s call it `https://forum.example.com` he sees the login button in the top right corner.  
When he clicks on the login button he is redirected to `https://forum.example.com/session/sso?return_path=%2F`, then he is redirected to my custom login page and after successful login in he return to the forum.  
I want to return the user to a different place, so ideally I’d like to redirect the user to `https://tos.example.com`.  
I know I can create a link `https://forum.example.com/session/sso?return_path=https://tos.example.com`, but how can I change the login button on the forum so it will have a specific value in `return_path` (always the same)?  
Is there a global option for that?  
I’m aware this value reflects the current place where the user is on the forum (so he can get back to the same please when he logs in), but can this be changed?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [October 27, 2021, 8:10pm UTC](https://meta.discourse.org/t/change-login-link-param-return-path/207246/2 "2021-10-27T20:10:31Z")

</div>

I don’t know how to help with the solution that you’ve proposed, but perhaps this will help: [Discourse Cookie Consent Banner](https://meta.discourse.org/t/discourse-cookie-consent-banner/108380) (If it doesn’t help, I’m sorry. It’s my best guess and you’ve waited what must feel like an eternity.)
