landing page need to be same as requested url after logging in . So thought of using custom state in which url or pathname should be stored . So how should i access the previous url , if i need to get it from frontend how can I get it without using props.history.push ? Please suggest some ideas
Please check if this can narrow down the issue:
navigateToLoginRequestUrl
is set to true
in userAgentApplication callback constructor. By default, msal tries to take you back to the loginStartPage after successful authentication. It can be disabled or set to false when not required. See : AzureAD/msal for js (github.com)References:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.