# SSO Login redirection issue

**URL:** https://meta.discourse.org/t/sso-login-redirection-issue/110103
**Category:** Support
**Tags:** subfolder
**Created:** [February 26, 2019, 8:56am UTC](https://meta.discourse.org/t/sso-login-redirection-issue/110103 "2019-02-26T08:56:55Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [February 26, 2019, 9:19am UTC](https://meta.discourse.org/t/sso-login-redirection-issue/110103/2 "2019-02-26T09:19:22Z")

</div>

Duplicate of

> [@Subfolder SSO Login redirection issue](https://meta.discourse.org/t/subfolder-sso-login-redirection-issue/110056):
>
> Hi, I have deployed discourse on vm, and configured sso, Also have configured application gateway, we have set a path rule /community for forum, on hitting /community/session/sso the app authorises and redirects back to the main website. For example: on hitting [https://mymainwebsite.com/community/session/sso](https://mymainwebsite.com/community/session/sso) i am automatically redirected back to [https://mymainwebsite.com](https://mymainwebsite.com). When i check the log it has authorised token but at the end it is redirecting to main site. Could anyone pleas…

This has nothing to do with discourse, Check the SSO provider settings, that’s what is supposed to redirect back to the referrer

---

_[View the full topic](https://meta.discourse.org/t/sso-login-redirection-issue/110103)._
