Skip to content

The link to bypass .git-blame-ignore-revs in the blame view links to the wrong file #31429

Closed
@noodlebox

Description

@noodlebox

Description

When revisions are hidden from the blame view, the URL for the link to bypass this feature appends ?bypass-blame-ignore=true to the path of .git-blame-ignore-revs ($revsFileLink again) instead of to that of the current file.

<p>{{ctx.Locale.Tr "repo.blame.ignore_revs" $revsFileLink (print $revsFileLink "?bypass-blame-ignore=true")}}</p>

blame.ignore_revs = Ignoring revisions in <a href="%s">.git-blame-ignore-revs</a>. Click <a href="%s">here to bypass</a> and see the normal blame view.

On the demo site: https://demo.gitea.com/noodlebox/test/blame/branch/main/README.md

Screenshots

image

Gitea Version

N/A

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

N/A

Browser Version

Any

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions