Browse Source

Merge pull request #22873 from abpframework/auto-merge/rel-9-2/3725

Merge branch dev with rel-9.2
pull/22875/head
maliming 1 year ago
committed by GitHub
parent
commit
7c33b236b0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 15
      npm/ng-packs/packages/oauth/src/lib/strategies/auth-code-flow-strategy.ts

15
npm/ng-packs/packages/oauth/src/lib/strategies/auth-code-flow-strategy.ts

@ -50,14 +50,13 @@ export class AuthCodeFlowStrategy extends AuthFlowStrategy {
const location = this.windowService.window.location; const location = this.windowService.window.location;
const history = this.windowService.window.history; const history = this.windowService.window.history;
const href = const query = location.search
location.origin + .replace(/([?&])iss=[^&]*&?/, '$1')
location.pathname + .replace(/([?&])culture=[^&]*&?/, '$1')
location.search .replace(/([?&])ui-culture=[^&]*&?/, '$1')
.replace(/iss=[^&$]*/, '') .replace(/[?&]+$/, '');
.replace(/culture=[^&$]*/, '')
.replace(/ui-culture=[^&$]*/, '') + const href = location.origin + location.pathname + query + location.hash;
location.hash;
history.replaceState(null, '', href); history.replaceState(null, '', href);
} }

Loading…
Cancel
Save