Browse Source

fix: navigate attempt to unauthorized page after navigation to home

pull/19421/head
masumulu28 3 years ago
parent
commit
c5b792b43e
  1. 2
      npm/ng-packs/apps/dev-app/src/app/app-routing.module.ts
  2. 2
      npm/ng-packs/packages/theme-shared/src/lib/components/http-error-wrapper/http-error-wrapper.component.ts

2
npm/ng-packs/apps/dev-app/src/app/app-routing.module.ts

@ -31,4 +31,4 @@ const routes: Routes = [
imports: [RouterModule.forRoot(routes, {})], imports: [RouterModule.forRoot(routes, {})],
exports: [RouterModule], exports: [RouterModule],
}) })
export class AppRoutingModule { } export class AppRoutingModule {}

2
npm/ng-packs/packages/theme-shared/src/lib/components/http-error-wrapper/http-error-wrapper.component.ts

@ -92,7 +92,7 @@ export class HttpErrorWrapperComponent implements OnInit, AfterViewInit, OnDestr
} }
goHome() { goHome() {
this.router.navigateByUrl('/'); this.router.navigateByUrl('/', { onSameUrlNavigation: 'reload' });
this.destroy(); this.destroy();
} }

Loading…
Cancel
Save