Commit 095804a5 authored by Stan Hu's avatar Stan Hu

Merge branch '329862-fix-project-path-generation' into 'master'

Fix a bug displaying project commit anchors

See merge request gitlab-org/gitlab!61361
parents c65eb7dc 7d9fddca
...@@ -210,7 +210,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated ...@@ -210,7 +210,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
strong_start: '<strong class="project-stat-value">'.html_safe, strong_start: '<strong class="project-stat-value">'.html_safe,
strong_end: '</strong>'.html_safe strong_end: '</strong>'.html_safe
}, },
empty_repo? ? nil : project_commits_path(project, repository.root_ref)) empty_repo? ? nil : project_commits_path(project, default_branch_or_main))
end end
def branches_anchor_data def branches_anchor_data
......
---
title: Fix a bug displaying project commit anchors
merge_request: 61361
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment