Hello Team,
I need to redirect to Home page after user successfully log-in the portal.
Problem = When user log-out from specific page then getting that page URL at sign-in page and due to this at re-login user redirecting to page where he was logged-out previously.
Let me know if there is any solutions for this issue.
Thanks,
Vaibhav
Solved! Go to Solution.
Hi, I just tried here the following and it worked
Instead of specifying home, I am specifying the root page with just a slash / :
<a role="menuitem" aria-label="{{ snippets["links/logout"] | default:resx["Sign_Out"] | escape }}" href="{% if homeurl%}/{{ homeurl }}{% endif %}/Account/Login/LogOff?returnUrl=/" title="{{ snippets["links/logout"] | default:resx["Sign_Out"] | escape }}">
{{ snippets["links/logout"] | default:resx["Sign_Out"] | escape }}
</a>
Power Apps Portals Super User
Hi, you can achieve this by changing the sign-out link on the Header Web Template.
Please follow this article: http://shaikhd365.blogspot.com/2019/07/redirect-to-home-page-when-logout-into.html
Power Apps Portals Super User
Hi @OliverRodrigues I tried by what mentioned in given link, but it changes the menu UI and also not redirected to Home page when I re-login.
Below is my code:
Hi, I just tried here the following and it worked
Instead of specifying home, I am specifying the root page with just a slash / :
<a role="menuitem" aria-label="{{ snippets["links/logout"] | default:resx["Sign_Out"] | escape }}" href="{% if homeurl%}/{{ homeurl }}{% endif %}/Account/Login/LogOff?returnUrl=/" title="{{ snippets["links/logout"] | default:resx["Sign_Out"] | escape }}">
{{ snippets["links/logout"] | default:resx["Sign_Out"] | escape }}
</a>
Power Apps Portals Super User
@OliverRodrigues Thanks for verifying . I used this and it also works.
perfect, that's the same URL you just assigned to a variable
can you mark my previous reply as the answer in case other people are looking for similar results
nevermind, just saw you did this
thanks
Power Apps Portals Super User
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
10 | |
8 | |
2 | |
1 | |
1 |
User | Count |
---|---|
33 | |
21 | |
21 | |
8 | |
3 |