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 {
1630
1630
1631
1631
if ( ! options . preventClearHashAfterLogin ) {
1632
1632
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 ;
1637
1640
1638
1641
history . replaceState ( null , window . name , href ) ;
1639
1642
}
You can’t perform that action at this time.
0 commit comments