Forums

Forums / General Discussions / Redirect to login page after authentication-expiration on submit button click

Redirect to login page after authentication-expiration on submit button click

2 posts, 1 answered
  1. mani varma
    mani varma avatar
    8 posts
    Registered:
    21 Jul 2020
    13 Oct 2020
    Link to this post
    Hi Team,

    currently authentication expiration is working after the configured time but if the user still submits the form it is not taking them to the login page instead they are on the page the loading image comes and loads for an infinite time.

    How can we redirect them to login page if they click on submit button.

    If i click on any other page/page navigation they are being redirected to login page. only on submit button click it is not doing so.
    How do we correct this.

    Regards,
    Mani
  2. Patrick
    Patrick avatar
    33 posts
    Registered:
    20 Apr 2020
    Answered
    04 Nov 2020 in reply to mani varma
    Link to this post
    Hi Mani,

    My apologies for the delay in response. As long as the 'redirect to' page setting on the TPC Submit button for that form is set to a page that requires login, it should redirect to the login page on form submit.

    Judging by the loading image showing indefinitely as you describe, my guess would be there's an error happening on the page. Please check the console to see if there are any errors on the page. To do so, right-click on the page, click Inspect, then click on the Console tab. It may also be worthwhile to check the TPC error logs in the Sitefinity backend under Administration > Portal Connector Configuration > Error Handling > Error Logs.

    Let me know what you find.

    Thanks,

    Patrick
2 posts, 1 answered