From 01f66d4b8f6805946e23dbd13523cb5809fcfe09 Mon Sep 17 00:00:00 2001 From: LoboTheDark Date: Mon, 2 Feb 2026 08:56:51 +0100 Subject: [PATCH] Fixed smaller rounting bugs --- src/app/constants/RouterConstants.ts | 10 +++++----- src/app/pages/algorithms/service/algorithms.service.ts | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/app/constants/RouterConstants.ts b/src/app/constants/RouterConstants.ts index 45a21ee..50e2d6d 100644 --- a/src/app/constants/RouterConstants.ts +++ b/src/app/constants/RouterConstants.ts @@ -8,31 +8,31 @@ export class RouterConstants { static readonly ABOUT = { PATH: 'about', - LINK: ['/about'] as const, + LINK: '/about', COMPONENT: AboutComponent }; static readonly PROJECTS = { PATH: 'projects', - LINK: ['/projects'] as const, + LINK: '/projects', COMPONENT: ProjectsComponent }; static readonly ALGORITHMS = { PATH: 'algorithms', - LINK: ['/algorithms'] as const, + LINK: '/algorithms', COMPONENT: AlgorithmsComponent }; static readonly PATHFINDING = { PATH: 'algorithms/pathfinding', - LINK: ['/algorithms', 'pathfinding'] as const, + LINK: '/algorithms/pathfinding', COMPONENT: PathfindingComponent }; static readonly IMPRINT = { PATH: 'imprint', - LINK: ['/imprint'] as const, + LINK: '/imprint', COMPONENT: ImprintComponent }; } diff --git a/src/app/pages/algorithms/service/algorithms.service.ts b/src/app/pages/algorithms/service/algorithms.service.ts index bdf1e9a..a317759 100644 --- a/src/app/pages/algorithms/service/algorithms.service.ts +++ b/src/app/pages/algorithms/service/algorithms.service.ts @@ -1,6 +1,7 @@ import { Injectable } from '@angular/core'; import { AlgorithmCategory } from '../models/algorithm-category'; import { Observable, of } from 'rxjs'; +import {RouterConstants} from '../../../constants/RouterConstants'; @Injectable({ providedIn: 'root' @@ -12,7 +13,7 @@ export class AlgorithmsService { id: 'pathfinding', title: 'ALGORITHM.PATHFINDING.TITLE', description: 'ALGORITHM.PATHFINDING.DESCRIPTION', - routerLink: 'pathfinding' + routerLink: RouterConstants.PATHFINDING.LINK } ];