Skip to content

Commit

Permalink
feat() fix redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
develite98 committed Nov 3, 2023
1 parent 5c4d631 commit 483426c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/mix-database/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { SwUpdate, VersionReadyEvent } from '@angular/service-worker';
import { zoomOutLeftOnLeaveAnimation } from '@mixcore/share/animation';
import { MixEaterEgg } from '@mixcore/share/api';
import { AuthService } from '@mixcore/share/auth';
import { DomHelper } from '@mixcore/share/helper';
import { ModalService } from '@mixcore/ui/modal';
import { filter, forkJoin, switchMap } from 'rxjs';

Expand Down Expand Up @@ -67,7 +68,7 @@ export class AppComponent implements OnInit {
this.authService.isAuthorized$.next(true);
this.router
.navigateByUrl(
this.authService.redirectUrl || window.location.pathname
this.authService.redirectUrl || DomHelper.getCurrentPathname()
)
.then();

Expand Down
3 changes: 2 additions & 1 deletion apps/mix-kanban/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { SwUpdate, VersionReadyEvent } from '@angular/service-worker';
import { zoomOutLeftOnLeaveAnimation } from '@mixcore/share/animation';
import { MixEaterEgg } from '@mixcore/share/api';
import { AuthService } from '@mixcore/share/auth';
import { DomHelper } from '@mixcore/share/helper';
import { ModalService } from '@mixcore/ui/modal';
import { filter, forkJoin, switchMap } from 'rxjs';

Expand Down Expand Up @@ -67,7 +68,7 @@ export class AppComponent implements OnInit {
this.authService.isAuthorized$.next(true);
this.router
.navigateByUrl(
this.authService.redirectUrl || window.location.pathname
this.authService.redirectUrl || DomHelper.getCurrentPathname()
)
.then();

Expand Down

1 comment on commit 483426c

@vercel
Copy link

@vercel vercel bot commented on 483426c Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.