Skip to content

UI bugs: The "Code" tab always goes to the "master" branch and the "Commits" tab is incorrect when viewing a commit in a branch #2147

@wyattoday

Description

@wyattoday

Description

UI bug: The "Code" tab always goes to the "master" branch and the "Commits" tab is incorrect when viewing a commit in a branch

  1. When viewing a commit in gitea, the "Commits" tab above will link not to the branch that the commit is part of, but rather it will link to the "master" (and show the master's commit count). Here's an example: https://try.gitea.io/wyattoday/simple-respository/commit/df8d094d0cab1732bbf34d5c125a9e09c1eb9f92

  2. The "Code" tab above always links to the "master" branch even if we're currently viewing a file in the "new-feature-branch". The better UI (and the UI that matches what github does) is to have that "Code" tab take you to the root of the branch that you're currently viewing (whether you're viewing a commit in the branch or an individual file in the branch). Here are 2 examples:

https://try.gitea.io/wyattoday/simple-respository/commit/df8d094d0cab1732bbf34d5c125a9e09c1eb9f92

https://try.gitea.io/wyattoday/simple-respository/src/new-feature-branch

Screenshots

If this issue involves the Web Interface, please include a screenshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions