mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08: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…
x
Reference in New Issue
Block a user