I am making React App in which msal-browser has been integrated for login.
Steps to reproduce:
-> Enter url in browser like https://example.com/profile
-> User is not logged in yet, so the user will be redirected to login page and upon clicking login button, user will be redirected to https://login.microsoftonline.com/ .
-> Entered user credentials and once the login is successful, user was redirected to https://example.com/home post login.
Expectation:
-> But the user is expected to redirect back to the original/requested url which is https://example.com/profile.
Things tried:
I have tried configuring the auth like,
auth: {
clientId: clientId,
authority: authority,
redirectUri: redirectUri,
navigateToLoginRequestUrl : true
},
Thought navigateToLoginRequestUrl will do the trick but unfortunately it doesn't. Anyone here could able to help and get out of this blocker I am facing? Big thanks in advance.