web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Redirection after Login/Logout (ReturnURL)

(0) ShareShare
ReportReport
Posted on by 652

Hi,

I am having trouble with correctly setting the ReturnURL after logout and the ReturnURL after login in my Portal.

in D365 Portals, how do I effectively set up to achieve the following:

  • Once a user successfully logs in, he shall be directed to a specific page of the Portal (e.g. Knowledge Base)
  • Once a user logs out and logs in again, he shall always be directed to a specific page of the Portal (e.g. Knowledge Base) EVEN IF he logs out from some other site (e.g. Support)

I have tried with various Site Settings, but none of them takes a permanent effect.

Thank you.

*This post is locked for comments

I have the same question (0)
  • Tino Rabe Profile Picture
    652 on at
    RE: Redirection after Login/Logout (ReturnURL)

    Thanks, I'll check that out.

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Redirection after Login/Logout (ReturnURL)

    Hi Tino,

    I had the same require few months back but couldn't get any reference on how can I achieve it. As the templates are not available, we can't either customize.

    I ended up with a workaround of adding a button within the home page with the return URL to my support page. So when someone opens the portal, instead of clicking the sign in from top, they click the custom sign in button which redirects to the support page post login.

    Below is the code snippet of my customized  home  web template

    ##############

    {% if user %}

          {% else %}

          <a style="color:#ffffff;background-color:#0B80D0" href="~/signin?returnUrl=%2Fsupport" class="btn btn-info-home btn-lg-home" title="Sign In">Sign In</a>

          {% endif %}

    #################

    Hope this helps.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans