diff --git a/apps/home/src/app/app.component.html b/apps/home/src/app/app.component.html
index 4be75efb..8fbf88c3 100644
--- a/apps/home/src/app/app.component.html
+++ b/apps/home/src/app/app.component.html
@@ -1,6 +1,6 @@
-
diff --git a/apps/home/src/app/app.module.ts b/apps/home/src/app/app.module.ts
index c56d2029..6bd1b383 100644
--- a/apps/home/src/app/app.module.ts
+++ b/apps/home/src/app/app.module.ts
@@ -1,9 +1,7 @@
import { importProvidersFrom, isDevMode, NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'
-import { RouterModule } from '@angular/router'
import { AppComponent } from './app.component'
import {
- DefaultRouterModule,
FeatureAuthModule,
FeatureCatalogModule,
FeatureRecordModule,
@@ -20,7 +18,6 @@ import {
UiInputsModule,
UiWidgetsModule,
UiMapModule,
- RouterService,
} from 'geonetwork-ui'
import {
TranslateLoader,
@@ -41,7 +38,6 @@ import { MatTooltipModule } from '@angular/material/tooltip'
import { MelModule, MelEmbeddedTranslateLoader } from '@mel-dataplatform/mel'
import { HomeHeaderComponent } from './home/home-header/home-header.component'
import { HomePageComponent } from './home/home-page/home-page.component'
-import { AppRouterService } from './app.router.service'
@NgModule({
declarations: [AppComponent, HomeHeaderComponent, HomePageComponent],
@@ -85,21 +81,11 @@ import { AppRouterService } from './app.router.service'
),
EffectsModule.forRoot([]),
StoreDevtoolsModule.instrument({ logOnly: !isDevMode() }),
- DefaultRouterModule.forRoot({
- searchStateId: 'mainSearch',
- searchRouteComponent: HomePageComponent,
- recordRouteComponent: HomePageComponent,
- }),
- RouterModule.forRoot([], {
- initialNavigation: 'enabledBlocking',
- scrollPositionRestoration: 'enabled',
- }),
],
providers: [
importProvidersFrom(FeatureAuthModule),
provideGn4(),
provideRepositoryUrl(() => '/geonetwork/srv/api'),
- { provide: RouterService, useClass: AppRouterService },
{
provide: LOGIN_URL,
useFactory: () => '${current_url}?login',
diff --git a/apps/home/src/app/app.router.service.ts b/apps/home/src/app/app.router.service.ts
deleted file mode 100644
index a3a5f7be..00000000
--- a/apps/home/src/app/app.router.service.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { Injectable } from '@angular/core'
-import { Routes } from '@angular/router'
-import { RouterService } from 'geonetwork-ui'
-import { HomePageComponent } from './home/home-page/home-page.component'
-
-@Injectable()
-export class AppRouterService extends RouterService {
- override buildRoutes(): Routes {
- return [
- {
- path: '',
- component: HomePageComponent,
- data: {
- shouldDetach: true,
- },
- },
- { path: '**', redirectTo: '', pathMatch: 'full' },
- ]
- }
-}
diff --git a/apps/home/src/app/home/home-header/home-header.component.html b/apps/home/src/app/home/home-header/home-header.component.html
index 47dbe395..dee8fd1a 100644
--- a/apps/home/src/app/home/home-header/home-header.component.html
+++ b/apps/home/src/app/home/home-header/home-header.component.html
@@ -6,11 +6,12 @@