# Redirect to referral source just after login or signup

**URL:** <https://meta.discourse.org/t/redirect-to-referral-source-just-after-login-or-signup/23882>\
**Category:** Support\
**Created:** [January 11, 2015, 10:19am UTC](https://meta.discourse.org/t/redirect-to-referral-source-just-after-login-or-signup/23882 "2015-01-11T10:19:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul1](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rahul1](https://meta.discourse.org/u/rahul1)\
**Post date:** [January 11, 2015, 10:19am UTC](https://meta.discourse.org/t/redirect-to-referral-source-just-after-login-or-signup/23882/1 "2015-01-11T10:19:50Z")

</div>

Hi, I have setup discourse for my community and here is one use case I have, please help me how can I do this:

1. User land to my main website ex ([Redirecting...](http://MyStaticWebsite.com/xyz))
2. I have put a hyperlink on my main website called Login/Signup and link it to [Redirecting...](http://discourse.MyStaticWebsite.com/login)
3. After authentication is there any way I can identify the referral at this point and can redirect user to the referring url ([Redirecting...](http://MyStaticWebsite.com/xyz)) ??

---

<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:** [August 30, 2018, 12:32am UTC](https://meta.discourse.org/t/redirect-to-referral-source-just-after-login-or-signup/23882/2 "2018-08-30T00:32:43Z")

</div>



---

<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:** [August 30, 2018, 12:36am UTC](https://meta.discourse.org/t/redirect-to-referral-source-just-after-login-or-signup/23882/3 "2018-08-30T00:36:57Z")

</div>

This is not possible at the moment without a custom theme component. Nervous about adding a feature like this cause it can be used for abuse if it is provided by the end user.

---

<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 14, 2021, 11:57pm UTC](https://meta.discourse.org/t/redirect-to-referral-source-just-after-login-or-signup/23882/4 "2021-04-14T23:57:03Z")

</div>


