From e6615e3bd44ef65df1f1c4ed84513383131258eb Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Fri, 25 Aug 2023 20:46:12 +0200 Subject: [PATCH] Fixing navigation with name collision fixes #700 --- .../app/ui/gallery/navigator/navigator.gallery.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/app/ui/gallery/navigator/navigator.gallery.component.ts b/src/frontend/app/ui/gallery/navigator/navigator.gallery.component.ts index f2bcfffb..e5cb17f0 100644 --- a/src/frontend/app/ui/gallery/navigator/navigator.gallery.component.ts +++ b/src/frontend/app/ui/gallery/navigator/navigator.gallery.component.ts @@ -95,7 +95,7 @@ export class GalleryNavigatorComponent { // create rest navigation dirs.forEach((name, index) => { - const route = dirs.slice(0, dirs.indexOf(name) + 1).join('/'); + const route = dirs.slice(0, index + 1).join('/'); if (dirs.length - 1 === index) { arr.push({name, route: null}); } else {