Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to redirect the page if i click on "Sign out" button in Dynamics 365

(1) ShareShare
ReportReport
Posted on by 545

Hi Experts,

I am working on "Custom portal" in dynamics 365. Suppose i am having one tab called "abc".if i am opening that tab then we need to expose a view from "CRM".After that if I click on "Sign Out" button it should redirect to "Home" Page.

How to redirect the page if i click on "Sign out" button??

*This post is locked for comments

  • Verified answer
    Jagannath Profile Picture
    545 on at
    RE: How to redirect the page if i click on "Sign out" button in Dynamics 365

    just closing this thread bcz people got the solution.

  • Suggested answer
    Gopinath Gurusamy Profile Picture
    125 on at
    RE: How to redirect the page if i click on "Sign out" button in Dynamics 365

    Thanks LA, this works perfectly.

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: How to redirect the page if i click on "Sign out" button in Dynamics 365

    Thanks LA. I will try this

  • Verified answer
    Fubar Profile Picture
    2,752 on at
    RE: How to redirect the page if i click on "Sign out" button in Dynamics 365

    One way to do it is to edit the Web Template called "Header"  this contains the link for the logoff option on the menu, there will be a line that starts something like the following

    <a href="{% if homeurl%}/{{ homeurl }}{% endif %}/Account/Login/LogOff?returnUrl={{ request.raw_url_encode | escape }}"

    replace the {{ request.raw_url_encode | escape }} with an escaped short name of the page you want to load on logoff eg.

    <a href="{% if homeurl%}/{{ homeurl }}{% endif %}/Account/Login/LogOff?returnUrl=%2My-page"

    Note: this only works where the user logs off from the menu, it will not work for the scenario where they are timed out.

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: How to redirect the page if i click on "Sign out" button in Dynamics 365

    Hi Jagannath,

    I am also having the same requirement. How did you manage to achieve this?

    Thanks,

    Ravi Kashyap

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,850 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans