File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1630,10 +1630,13 @@ export class OAuthService extends AuthConfig implements OnDestroy {
16301630
16311631 if ( ! options . preventClearHashAfterLogin ) {
16321632 const href = location . origin + location . pathname +
1633- location . search . replace ( / [ & \? ] c o d e = [ ^ & \$ ] * / , '' )
1634- . replace ( / [ & \? ] s c o p e = [ ^ & \$ ] * / , '' )
1635- . replace ( / [ & \? ] s t a t e = [ ^ & \$ ] * / , '' )
1636- . replace ( / [ & \? ] s e s s i o n _ s t a t e = [ ^ & \$ ] * / , '' ) + location . hash ;
1633+ location . search . replace ( / c o d e = [ ^ & \$ ] * / , '' )
1634+ . replace ( / s c o p e = [ ^ & \$ ] * / , '' )
1635+ . replace ( / s t a t e = [ ^ & \$ ] * / , '' )
1636+ . replace ( / s e s s i o n _ s t a t e = [ ^ & \$ ] * / , '' )
1637+ . replace ( / ^ \? & / , '?' )
1638+ . replace ( / & $ / , '' )
1639+ . replace ( / ^ \? $ / , '' ) + location . hash ;
16371640
16381641 history . replaceState ( null , window . name , href ) ;
16391642 }
You can’t perform that action at this time.
0 commit comments