Repository navigation
Only disable latest-tag-button when actually on the latest tag - #5365
Conversation
...if current branch is default branch
|
Showing “you’re on the latest release” on the default branch is intentional because the feature was introduced to make you aware you’re potentially looking at a pre-release version of the documentation — hence the term “release” rather than the more specific “tag”. Showing “you’re on the latest release” when on a different tag yeah, that’s a bug 😃 |
latest-tag-button when you actually on the latest taglatest-tag-button when actually on the latest tag
But we should be accurate here. It's called People should be aware of the relationship of tag and release and if they do they will get what the tip is conveying |
|
“You’re on the latest version”
Uhm. It's called that way because it links to the latest tag. The name is accurate. We're talking about the tooltip and state of the button, which mentions where "you're on", not where you're going. |
|
I just noticed We can create an exception for it in this feature, but ideally I would like to see |
|
I don't remember our decisions around it but I think that it doesn't need to be async. @yakov116 might have some ideas on why this is happening. Is this bug due to this PR? |
|
We need The issue is that |
|
Right, if this hasn't just changed behavior, I think the current situation is fine. In features that run on the repo home we just need to use getDefaultBranch. I also saw the mention in #5222 (comment) |

Bug introduced in
e7f0d3e(#3199), it only checks if the default branch is not ahead of the latest tag, but doesn't check if you are actually on the default branch.Also changed the text from "release" to "tag". "Release" is a GitHub term and what we are really working with is Git tags.
Test URLs
https://github.com/refined-github/refined-github/tree/22.1.18
Screenshot