# .../login link force redirect to "latest" view

**URL:** <https://meta.discourse.org/t/login-link-force-redirect-to-latest-view/59780>\
**Category:** SSO\
**Created:** [2017年三月23日 16:45 UTC](https://meta.discourse.org/t/login-link-force-redirect-to-latest-view/59780 "2017-03-23T16:45:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Tib](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven_tib/32/69725_2.png) [@Steven\_Tib](https://meta.discourse.org/u/Steven_Tib)\
**Post date:** [2017年三月23日 16:45 UTC](https://meta.discourse.org/t/login-link-force-redirect-to-latest-view/59780/1 "2017-03-23T16:45:39Z")

</div>

Hi all,

I’ve just successfully setup SSO between our main app and our new discourse forum, however I’m having a small (but annoying) behavior.

From my main app, I’ve set up a link to the forum that forces the user to log into the forum: **[http://forum.200bar.co/login](http://forum.200bar.co/login)**  
It does the job and forces the login but it also redirect to the _“latest topics list”_ page view.

We want to have the **default** view to **Categories** , which we have setup and it works when opening [http://forum.200bar.co](http://forum.200bar.co) (below mentioned **forum\_link** )

This unwanted redirect behvaior just happens with the _/login_ link:  
**forum\_link/login** --\>auto redirects to: **forum\_link/latest** —\> Launches login SSO procedure → then back to **forum\_link/latest** after sucessful login.

Any idea on how I can force to come back on the **category** page after successful login?

_PS: I want to keep this forum accessible (readable) by anonymous users, setting the “only logged in user allowed to view content” does solve the problem but this is now what we want._

Thanks for your help,  
Cheers

---

<div class="post-metadata">

**Author:** ![Steven\_Tib](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven_tib/32/69725_2.png) [@Steven\_Tib](https://meta.discourse.org/u/Steven_Tib)\
**Post date:** [2017年三月29日 18:03 UTC](https://meta.discourse.org/t/login-link-force-redirect-to-latest-view/59780/2 "2017-03-29T18:03:04Z")

</div>

Hi,  
Just changed the category to be more specific to SSO behavior.  
Hope someone here can help

Cheers,
