#1238 Show files from the current branch and not master when coming from Issues/PRs/Releases/Forks page
Closed: Fixed Opened by vivekanand1101.

When you are on the above mentioned pages, and you click on Files tab, you are shown files from master branch rather than the branch you currently are on. This happened while i was browsing fedora-hubs.


I am a little confused, the title seems to contradicts the description.

The title says that the default branch is shown (not master), while the description says that the files from master are shown (not the default branch).

Could you clarify your thoughts?

Edited the issue.

Then I believe it's not an issue, on fedora-hubs the default branch is set to develop so pagure shows that branch by default as it should :)

@pingou , open fedora-hubs -> go to releases tab --> go to files tab. Something is wrong there. It shows files from develop but if you see the branch button, it's master. When you click on a file it searches that in master and sometimes gives 404 (because, the file is present in develop and not in master)

Ah, so the issue isn't in the content displayed but in the default value of the drop-down list, correct?

or is there something funky happening here if the main branch is set to be something other than master?

@vivekanand1101 did you see the questions here for you?

I think problem is not just the drop-down. The problem is probably because of this. We are sort of hard coding the branch while the commit checks the head.

Fixed by @vivekanand1101 in #1264

@pingou changed the status to Fixed

Metadata