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 9 months 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 history = this.windowService.window.history;
const href =
location.origin +
location.pathname +
location.search
.replace(/iss=[^&$]*/, '')
.replace(/culture=[^&$]*/, '')
.replace(/ui-culture=[^&$]*/, '') +
location.hash;
const query = location.search
.replace(/([?&])iss=[^&]*&?/, '$1')
.replace(/([?&])culture=[^&]*&?/, '$1')
.replace(/([?&])ui-culture=[^&]*&?/, '$1')
.replace(/[?&]+$/, '');
const href = location.origin + location.pathname + query + location.hash;
history.replaceState(null, '', href);
}

Loading…
Cancel
Save