From 4fd9f1cc76f7e92b2e66e9e003d0fb5d42338209 Mon Sep 17 00:00:00 2001 From: AlexanderSt512 Date: Thu, 7 Nov 2024 12:42:47 +0200 Subject: [PATCH] Updated app module providers --- src/app/app.module.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 1ee6f36..c51656a 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -17,6 +17,7 @@ import { AdminsGuard } from './core/guards/admins.guard'; import { AlertModule } from './core/modules/alert/alert.module'; import { ModalModule } from './core/modules/modal/modal.module'; import { NgxTinymceModule } from 'ngx-tinymce'; +import { HashLocationStrategy, LocationStrategy } from '@angular/common'; const routes: Routes = [ { @@ -209,7 +210,15 @@ const routes: Routes = [ baseURL: '//cdnjs.cloudflare.com/ajax/libs/tinymce/5.7.1/' }) ], - providers: [AuthenticatedGuard, GuestGuard, AdminsGuard], + providers: [ + AuthenticatedGuard, + GuestGuard, + AdminsGuard, + { + provide: LocationStrategy, + useClass: HashLocationStrategy + } + ], bootstrap: [AppComponent] }) export class AppModule {}