Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Portal URL not leading to a specific record when a user is redirected to the login page

Posted on by 60

Good Morning everyone. 

I'm facing very strange behavior related to portal URL handling. I'm almost sure it used to work correctly but now it doesn't. 

When I want to share a portal link that leads straight to a case record like so:

 <my-site-name>.powerappsportals.com/support/edit-case/?id=673937f7-075f-eb11-a81c-000d3abe331f

When the person that receives this link is already logged in and has the right to access that record it works as expected.

The problem becomes apparent when a person is not logged in and after clicking a link, Portal redirects that user to the login page, updating the URL to:

<my-site-name>.powerappsportals.com/SignIn?ReturnUrl=/support/edit-case/&id=673937f7-075f-eb11-a81c-000d3abe331f 

That part after ReturnUrl is what tells the portal where to go after successful login, but it is wrongly constructed as it should be a question mark (?) instead of the ampersand (&) colored red in the URL above.

So when I logged in, the request goes straight to <my-site-name>.powerappsportals.com/support/edit-case/  leaving out the id of my record (the part that begins with an ampersand).

When I manually update ampersand to question mark and hit enter and then log in, it takes me to my record, otherwise, it obviously tells me that the record was not found as the id was cut out of the URL. 

Please someone could help me out with this problem? Could you confirm that this behavior is present on your portals?

Thanks,

Konrad

  • Suggested answer
    RE: Portal URL not leading to a specific record when a user is redirected to the login page

    Hey Konrad,

    I do know for a fact that this was working before.
    Let's also do a test.

    Try accessing <portalurl>/support/ from your browser [assuming you have the access control rules, you will be asked to sign in]
    click on sign in
    enter your creds or use SSO to login

    --> verify if you are redirected to <portalurl>/support/ after authentication

    I tried the scenario you have described but am unable to repro it. If you are still facing an issue, please raise a support incident with the Portals team at Microsoft. It could be particular to your configuration.

    Cheers!

    Pranjali

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans