From e62e1bcdd0e05627e043493487a751b78c35b10e Mon Sep 17 00:00:00 2001 From: Juanjo Ortilles Date: Thu, 11 Jul 2024 17:02:49 +0200 Subject: [PATCH] Revertimos cambios nohash --- eda/eda_app/src/app/app.module.ts | 3 +-- eda/eda_app/src/app/core/pages/core-pages.routes.ts | 2 +- .../app/shared/components/sidebar/sidebar.component.ts | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/eda/eda_app/src/app/app.module.ts b/eda/eda_app/src/app/app.module.ts index c2b918b4..3bc443b1 100644 --- a/eda/eda_app/src/app/app.module.ts +++ b/eda/eda_app/src/app/app.module.ts @@ -16,7 +16,6 @@ import { PagesComponent } from './module/pages/pages.component'; // Services import { ServicesModule } from './services/services.module'; -import { LocationStrategy, PathLocationStrategy } from '@angular/common'; @NgModule({ @@ -31,7 +30,7 @@ import { LocationStrategy, PathLocationStrategy } from '@angular/common'; CORE_ROUTES, HttpClientModule ], - providers: [ {provide: LocationStrategy, useClass: PathLocationStrategy} ], + providers: [ ], bootstrap: [AppComponent] }) export class AppModule { } diff --git a/eda/eda_app/src/app/core/pages/core-pages.routes.ts b/eda/eda_app/src/app/core/pages/core-pages.routes.ts index 8dd83872..51a70b98 100644 --- a/eda/eda_app/src/app/core/pages/core-pages.routes.ts +++ b/eda/eda_app/src/app/core/pages/core-pages.routes.ts @@ -25,4 +25,4 @@ export const coreRoutes: Routes = [ { path: '**', component: PageNotFoundComponent}, ]; -export const CORE_ROUTES = RouterModule.forRoot( coreRoutes, { useHash: false, onSameUrlNavigation: 'reload', relativeLinkResolution: 'legacy' } ); \ No newline at end of file +export const CORE_ROUTES = RouterModule.forRoot( coreRoutes, { useHash: true, onSameUrlNavigation: 'reload', relativeLinkResolution: 'legacy' } ); \ No newline at end of file diff --git a/eda/eda_app/src/app/shared/components/sidebar/sidebar.component.ts b/eda/eda_app/src/app/shared/components/sidebar/sidebar.component.ts index 027cf8a5..6db6a430 100644 --- a/eda/eda_app/src/app/shared/components/sidebar/sidebar.component.ts +++ b/eda/eda_app/src/app/shared/components/sidebar/sidebar.component.ts @@ -161,10 +161,10 @@ export class SidebarComponent implements OnInit { baseUrl = baseUrl.slice(0, baseUrl.length - 3) } switch (lan) { - case 'EN': window.location.href = baseUrl + 'en/home'; break; - case 'CAT': window.location.href = baseUrl + 'ca/home'; break; - case 'ES': window.location.href = baseUrl + 'es/home'; break; - case 'PL' : window.location.href = baseUrl + 'pl/home'; break; + case 'EN': window.location.href = baseUrl + 'en/#/home'; break; + case 'CAT': window.location.href = baseUrl + 'ca/#/home'; break; + case 'ES': window.location.href = baseUrl + 'es/#/home'; break; + case 'PL' : window.location.href = baseUrl + 'pl/#/home'; break; } }