1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

Fixing navigation with name collision fixes #700

This commit is contained in:
Patrik J. Braun 2023-08-25 20:46:12 +02:00
parent cff273e966
commit e6615e3bd4

View File

@ -95,7 +95,7 @@ export class GalleryNavigatorComponent {
// create rest navigation // create rest navigation
dirs.forEach((name, index) => { 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) { if (dirs.length - 1 === index) {
arr.push({name, route: null}); arr.push({name, route: null});
} else { } else {