-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
- Gitea version (or commit ref): Current master (858324c )
- Git version: 2.13.2
- Operating system: Ubuntu
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Log gist: N/A
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
-
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
-
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