From 11175fb6e9461901371ebe6583ac17369c19e061 Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 22 Aug 2024 23:32:09 +0200 Subject: [PATCH] news: fix routes --- src/app/app.routes.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index fde625d..97c2c6d 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -9,17 +9,13 @@ import { routes as imprintRoutes } from "./pages/imprint/imprint.routes"; import { routes as peeringRoutes } from "./pages/peering/peering.routes"; import { routes as statsRoutes } from "./pages/stats/stats.routes"; import { routes as networkRoutes } from "./pages/network/network.routes"; +import {routes as newsRoutes} from "./pages/news/news.routes"; export const routes: Routes = [ { path: '', loadComponent: () => import('./pages/home/home.component').then(c => c.HomeComponent) }, { path: 'blog', data: { title: $localize`Blog` }, children: blogRoutes }, { path: 'event', data: { title: $localize`Event` }, children: eventRoutes }, - { - path: 'news', - children: [ - { path: ':id', redirectTo: ({ params }) => `/blog/${params['id']}` }, - ], - }, + { path: 'news', data: { title: $localize`News` }, children: newsRoutes }, { path: 'association', data: { title: $localize`Association` }, children: associationRoutes }, { path: 'contact', data: { title: $localize`Contact` }, children: contactRoutes }, { path: 'privacy-policy', data: { title: $localize`Privacy Policy` }, children: privacyPolicyRoutes },