/#code becomes anchor after redirect
See original GitHub issueLibrary
-
msal@1.x.x
or@azure/msal@1.x.x
-
@azure/msal-browser@2.x.x
-
@azure/msal-node@1.x.x
-
@azure/msal-react@1.x.x
-
@azure/msal-angular@0.x.x
-
@azure/msal-angular@1.x.x
-
@azure/msal-angular@2.x.x
-
@azure/msal-angularjs@1.x.x
Description
I have a SPA with msal guards on all routes. After successfully login the user gets redirected to the app, but the ‘code’ stays visible on the url.
In the routing root i have:
useHash: false
How can i make sure that '#code=abc...
’ gets removed after the redirect?
Most example are using hash, so i couldn’t find anything in the samples or docs.
Source
- Internal (Microsoft)
- Customer request
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
JS redirect/window replace doesn't work if url is the same (but ...
I want to use JS/jQuery to reload the current page and jump to an anchor. ... window.location.href ='currentpage/#msg'+.message_id;. Both change ...
Read more >Redirection adds '#' to end of URL - Slim Framework
The redirect in this route gets a hash character appended to it. I have added logging immediately before the redirect, and the URL...
Read more >How to persist URL hash fragments across a login redirect.
By placing an anchor tag somewhere on the page and giving it a name, you could link to that portion of the page...
Read more >Creating anchor links - Squarespace Help Center
An anchor link (or "page jump") is a special URL that takes you to ... The unique ID becomes part of the URL...
Read more >How to Code a PHP Redirect - Bluehost.com
Where 'http://www.redirect.to.url.com/' is the URL you wish the users to be redirected to. This can also be a file, like so: <?php header("Location: ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a known limitation (path routing, redirect uri set to page using MSAL Guard via canLoad) that is not supported at this time. Please use a dedicated redirect URI that either does not use the MSAL Guard or uses canActivate.
We have root caused this issued, and should have a fix in the next version of MSAL Angular v2.