I am setting up the Dynamics Portal for one of our Clients. we have set it up to display out of box features like Entities list and forms.
Upon Logging in to the Portal the system is redirecting to name.microsoftcrmportals.com/en-USSignIn?ReturnUrl=%2Fen-US%2F
the site is adding en-US/SignIn?ReturnUrl=%2Fen-US%2F to the URL and just shows a blank page.
I am not able to redirect the page to Sign in page or to the home page using the Redirect record.
Can anyone please assist with this.
What URL you are using to access Portal? Does it have en-us at the end, if yes then remove that and try again. Example name.microsoftcrmportals.com
The issue is because is en-us. Normally it doesn't appear by default in the portal URL. The sign in page uses the redirect url to anything which is after your portal url that is why it is appending redirect url to en-us.
Hope this helps.
Thank you for your reply.
the site's primary domain is 3dr.microsoftcrmportals.com but when we open this directly on a browser it resolves like this 3dr.microsoftcrmportals.com/en-US
then if i click on sign in it resolves to https://3dr.microsoftcrmportals.com/en-US/SignIn?returnUrl=%2Fen-US%2F
how to get rid of returnUrl=%2Fen-US%2F from the sign in.
this is showing up even when trying to register a new user.
Thanks in Advance :)
It looks like somewhere en-Us is appended to your base portal URL. You need to review your portal records to find out if there is any place where you have used 3dr.microsoftcrmportals.com/en-US
Look for website, website Bing, redirect etc.
Also, whats your CRM's base language? Is it not English?
Can you go to site settings and check if the setting "Authentication/ApplicationCookie/LoginPath" is correct and doesn't have anything e.g. raw_url/lang appended?
No I haven't used en-us anywhere.
Base Language is English
Thank you for your assistance. I haven't created or edited any records with in site settings.
I don't see the "Authentication/ApplicationCookie/LoginPath" is it mandatory to have it ?
If so what should be value it should have ?
The issue is related to that en-us bit I am not sure from where it is appending that. I don't have any more suggestion other than raising a ticket with Microsoft.
I have got a solution to the issue I believe.
The Portal initially was configured with /en_US then it was removed from the base domain.
the system was replacing it twice, then we setup a Redirect URL record for it to go to Home Page.
i believe in out of box portal setup it would add the base language region en-US and a redirect URL en-US/SignIn?ReturnUrl=%2Fen-US%2F. which will redirect to either sign-in page or to Profile page when the portal user register's for the first time.
Created a case with Microsoft support and they said they didn't do anything but the url redirects correctly now to home page or profile page as expected.
Thank you everyone for your time to answer this question.
Great, So is it fixed on its own?
Yes. that's what I believe.
but when on call with them they said something was changed in the code. but didn't get any further info from the support team.
Found the solution:
Go to Portal>>Site Settings>> Authentication/Registration/ProfileRedirectEnabled
Turn this to false. This should do the magic
Sets whether or not the portal can redirect the user to the profile page after successful sign-in. By default, it is set to true.
Business Applications communities