# Redirect to main site after email approval

**URL:** https://meta.discourse.org/t/redirect-to-main-site-after-email-approval/116434
**Category:** WordPress
**Created:** [4월 30, 2019, 1:16오후 UTC](https://meta.discourse.org/t/redirect-to-main-site-after-email-approval/116434 "2019-04-30T13:16:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![squarepants](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/squarepants/32/138311_2.png) [@squarepants](https://meta.discourse.org/u/squarepants)
#### Post date: [4월 30, 2019, 1:16오후 UTC](https://meta.discourse.org/t/redirect-to-main-site-after-email-approval/116434/1 "2019-04-30T13:16:21Z")

</div>

I have a blog for which I am using discourse as SSO provider. What I have currently setup is to use wp-discourse shortcode for login link and hardcoded link for signup that is, `https://forum.example.com/signup`. Now I want the user to redirect automatically to my main blog after s/he confirms the email instead of my forum. Is this somehow possible?

Redirect after login works, by the way, thanks to that shortcode.

---

<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: [4월 30, 2019, 5:28오후 UTC](https://meta.discourse.org/t/redirect-to-main-site-after-email-approval/116434/2 "2019-04-30T17:28:18Z")

</div>

If users create new Discourse accounts by clicking the link created by the shortcode and then clicking the ‘Create New Account’ link on the Discourse login modal, they should be redirected back to your blog after confirming their email address.

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/3/13a7a208d5cce503e124a1f841320f547cd40837.png)

I don’t think there is any easy way to get the same behaviour with a hardcoded link to `https://forum.example.com/signup`.

---

<div class="post-metadata">

### Author: ![squarepants](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/squarepants/32/138311_2.png) [@squarepants](https://meta.discourse.org/u/squarepants)
#### Post date: [4월 30, 2019, 5:57오후 UTC](https://meta.discourse.org/t/redirect-to-main-site-after-email-approval/116434/3 "2019-04-30T17:57:36Z")

</div>

Oh sweet, didn’t knew that. Thanks a lot! 😅

---

<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: [5월 30, 2019, 6:02오후 UTC](https://meta.discourse.org/t/redirect-to-main-site-after-email-approval/116434/4 "2019-05-30T18:02:32Z")

</div>

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