Skip to content

Commit

Permalink
Revertimos cambios nohash
Browse files Browse the repository at this point in the history
  • Loading branch information
jortilles committed Jul 11, 2024
1 parent bd977f9 commit e62e1bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions eda/eda_app/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -31,7 +30,7 @@ import { LocationStrategy, PathLocationStrategy } from '@angular/common';
CORE_ROUTES,
HttpClientModule
],
providers: [ {provide: LocationStrategy, useClass: PathLocationStrategy} ],
providers: [ ],
bootstrap: [AppComponent]
})
export class AppModule { }
2 changes: 1 addition & 1 deletion eda/eda_app/src/app/core/pages/core-pages.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ export const coreRoutes: Routes = [
{ path: '**', component: PageNotFoundComponent},
];

export const CORE_ROUTES = RouterModule.forRoot( coreRoutes, { useHash: false, onSameUrlNavigation: 'reload', relativeLinkResolution: 'legacy' } );
export const CORE_ROUTES = RouterModule.forRoot( coreRoutes, { useHash: true, onSameUrlNavigation: 'reload', relativeLinkResolution: 'legacy' } );
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit e62e1bc

Please sign in to comment.