Skip to content

Commit

Permalink
Fixing navigation with name collision fixes #700
Browse files Browse the repository at this point in the history
  • Loading branch information
bpatrik committed Aug 25, 2023
1 parent cff273e commit e6615e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e6615e3

Please sign in to comment.