# Auth0 Universal Login page if idle for more than 1 day then on form submit redirecting to .login/callback page

**URL:** <https://community.auth0.com/t/auth0-universal-login-page-if-idle-for-more-than-1-day-then-on-form-submit-redirecting-to-login-callback-page/102908>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [March 20, 2023, 5:27am UTC](https://community.auth0.com/t/auth0-universal-login-page-if-idle-for-more-than-1-day-then-on-form-submit-redirecting-to-login-callback-page/102908 "2023-03-20T05:27:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rtauth](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rtauth/32/33495_2.png) [@rtauth](https://community.auth0.com/u/rtauth)\
**Post date:** [March 20, 2023, 5:27am UTC](https://community.auth0.com/t/auth0-universal-login-page-if-idle-for-more-than-1-day-then-on-form-submit-redirecting-to-login-callback-page/102908/1 "2023-03-20T05:27:45Z")

</div>

I am using Auth0 Universal login page. If user stays idle on login page for longer duration then on login form submit action user is getting redirected to /login/callback and not on App home page that has been configured under SPA app Application URIs settings. Sometimes Invalid state message is coming in the response.

See below screenshot for the reference

 ![image](https://global.discourse-cdn.com/auth0/original/3X/b/5/b521d75efb27342ef4e674bb3ffa6769ad4b0f33.png)

Instead of this page, can we redirect user back to application home page user and from there user will start login flow again.

---

<div class="post-metadata">

**Author:** ![art.stupels](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/art.stupels/32/30429_2.png) [@art.stupels](https://community.auth0.com/u/art.stupels)\
**Post date:** [March 20, 2023, 8:29am UTC](https://community.auth0.com/t/auth0-universal-login-page-if-idle-for-more-than-1-day-then-on-form-submit-redirecting-to-login-callback-page/102908/2 "2023-03-20T08:29:35Z")

</div>

Hello,

You can [Configure Default Login Routes](https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes) to redirect a user back to the application login in case a state expires.

I hope this helps!

---

<div class="post-metadata">

**Author:** ![rtauth](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rtauth/32/33495_2.png) [@rtauth](https://community.auth0.com/u/rtauth)\
**Post date:** [March 20, 2023, 8:45am UTC](https://community.auth0.com/t/auth0-universal-login-page-if-idle-for-more-than-1-day-then-on-form-submit-redirecting-to-login-callback-page/102908/3 "2023-03-20T08:45:09Z")

</div>

Thanks, Let me try the above settings.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 3, 2023, 8:45am UTC](https://community.auth0.com/t/auth0-universal-login-page-if-idle-for-more-than-1-day-then-on-form-submit-redirecting-to-login-callback-page/102908/4 "2023-04-03T08:45:47Z")

</div>

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