404 when navigating between branches on history page

Summary

When on a particular project's commit history screen, using the drop down to navigate between branches causes a 404 error due to the URL being used not being correct. It appears as if part of a group and subgroup are being appended to the URL. For example: say we have a structure like group-a/subgroup-b/subgroup-c/project and when looking at the master branch the end of the URL looks like group-a/subgroup-b/subgroup-c/project/-/commits/master/ and when we switch to branch test the url we should get is group-a/subgroup-b/subgroup-c/project/-/commits/test/ but instead we are seeing something like group-a/subgroup-b/subgroup-c/project/-/commits/test/oup-b/subgroup- being used..which does not exist and therefore 404's.

Steps to reproduce

Note: This is happening seemingly randomly and only on one project(that we know of as of now), I have been unable to determine if there is a pattern leading to this issue.

When the issue occurs it is when I do the following:

  1. Navigate to an affected project
  2. Select History
  3. Navigate to other branches using the drop down, until the error occurs.

Example Project

This is happening on a self hosted omnibus install running 13.6.3. Can't recreate a project with the issue.

What is the current bug behavior?

The user randomly gets a 404 when navigating between branches from the history screen.

The user should be able to navigate between branches.

Edited by Eddie Northcutt