web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Jagannath,

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

    Thanks,

    Ravi Kashyap

  • Verified answer
    Fubar Profile Picture
    2,761 on at

    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

    Thanks LA. I will try this

  • Suggested answer
    Gopinath Gurusamy Profile Picture
    125 on at

    Thanks LA, this works perfectly.

  • Verified answer
    Jagannath Profile Picture
    545 on at

    just closing this thread bcz people got the solution.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans