Skip to content

Make root slash in breadcrumbs lead to repo root with respect to revision

Administrator requested to merge og/fix-breadcrumbs-root-slash into main

Created by: oleggromov

Problem

Root slash link in the breadcrumbs was missing revision part of the URL (https://github.com/sourcegraph/sourcegraph/issues/26068).

Solution

Output right URL by using toRepoURL helper, which accepts revision. For some reason, this function was "deprecated" a long ago in favor of Repository.url, which doesn't contain revision component. So I un-deprecated it.

Merge request reports

Loading