Browse Source
Merge pull request #16654 from abpframework/bug/16588
Minor bug fixed for return prev. url
pull/16662/head
Barış Can Yılmaz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
2 deletions
-
npm/ng-packs/packages/oauth/src/lib/strategies/auth-code-flow-strategy.ts
|
|
|
@ -14,9 +14,12 @@ export class AuthCodeFlowStrategy extends AuthFlowStrategy { |
|
|
|
} |
|
|
|
|
|
|
|
navigateToLogin(queryParams?: Params) { |
|
|
|
const additionalState = queryParams.returnUrl; |
|
|
|
const cultureParams = this.getCultureParams(queryParams); |
|
|
|
let additionalState = ''; |
|
|
|
if (!!queryParams?.returnUrl) { |
|
|
|
additionalState = queryParams.returnUrl; |
|
|
|
} |
|
|
|
|
|
|
|
const cultureParams = this.getCultureParams(queryParams); |
|
|
|
this.oAuthService.initCodeFlow(additionalState, cultureParams); |
|
|
|
} |
|
|
|
|
|
|
|
|