Fixed the issue where opening the 'Commits' tab in a new browser tab showed the 'Files Changed' tab instead.
Fixes https://pagure.io/pagure/issue/787
1 new commit added
The subsequent commit fixes https://pagure.io/pagure/issue/1698. Issues #787 and #1698 are closely related.
Looking good, I'll have to test it locally but the code makes sense to me, thanks ! :)
neat and clean :thumbsup: :)
@pingou @rahulbajaj Thanks :)
It almost works :)
Basically it works for the classic use-case of clicking on the tabs, then sharing that link works but it doesn't work when highlighting some part of the PR and sharing that link, for example: https://pagure.io/pagure/pull-request/1718#_1,8-10
So we're close but there is one more use-case to consider :)
@pingou I think that fixes it :)
I also wrapped the entire thing in #pr-wrapper, just to make sure we only hide .tab-panes local to the PR page.
#pr-wrapper
.tab-pane
rebased
Thanks!
Pull-Request has been merged by pingou
Fixed the issue where opening the 'Commits' tab in a new browser
tab showed the 'Files Changed' tab instead.
Fixes https://pagure.io/pagure/issue/787