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:
parent
cff273e966
commit
e6615e3bd4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user