Skip to content

Fix incorrect breadcrumb output when any of last two path parts occur in previous parts

Yukai Li requested to merge cyanic/gitlab-ce:26511-path-breadcumbs into master

What does this MR do?

This MR fixes an issue with the breadcrumbs that appear above the repo tree and file view when browsing a repository. The breadcrumbs will display extra directories if the directory name is the same as either of the last two path components. This MR prevents that by looking at the index of the path component instead of comparing their contents to the last two components.

What are the relevant issue numbers?

#26511 (moved)

Does this MR meet the acceptance criteria?

Edited by Yukai Li

Merge request reports