I need user to redirect to Home page after user clicks on signout.
There is already solution provided using liquid script
Here is the solution provided
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/209262/automatic-redirect-to-login-page-after-logout?pifragment-97030=1#responses
But do we have any customized way in portal to change this behavior. I would like customizing rather than scripting.
Here is one blog which states customizing way but did not helped for me
shaikhd365.blogspot.com/.../redirect-to-home-page-when-logout-into.html
Hi,
Agree with Nick, there is no configuration to change as the url is built based on the header template so if you need to change this behavior, you have to change the templae..
Hope this helps.
I believe updating that Liquid code is your only option - no setting available that I'm aware of.
To always redirect to your home page, all you need to do is change the following in the Header Web Template from:
{{ website.sign_out_url_substitution }}
to:
/Account/Login/LogOff?returnUrl=%2F
Hope that helps.
Nick
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156