You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fork-source-link-same-view: The forked from link will be broken if the case doesn't match #3393
Ahh, yep this isn't the shortcut issue but still extension issue, I guess.
Could someone confirm the issue happens if you set your personal token and visit my fork repo e.g. johntitor/rust-forge (note that the capitalization, it should be johntitor, not JohnTitor)?
changed the title [-]"shortcut to fork repos" makes "forked from owner/repo" link not work properly[/-][+]fork-source-link-same-view: The `forked from` link will be broken if the personal token is set[/+]on Jul 23, 2020
changed the title [-]fork-source-link-same-view: The `forked from` link will be broken if the personal token is set[/-][+]`fork-source-link-same-view`: The `forked from` link will be broken if the case doesn't match[/+]on Jul 23, 2020
Activity
yakov116 commentedon Jul 23, 2020
JohnTitor commentedon Jul 23, 2020
yakov116 commentedon Jul 23, 2020
No i mean what page were you on the I can try to reproduce the issue?
JohnTitor commentedon Jul 23, 2020
fregante commentedon Jul 23, 2020
You can, this is the link: https://github.com/JohnTitor/rust-forge
fregante commentedon Jul 23, 2020
It works correctly in my case:
Did the repo change the name of the main branch recently?
kidonng commentedon Jul 23, 2020
I can't reproduce. Also, this doesn't seem to have relationship with
forked-to.kidonng commentedon Jul 23, 2020
It is still using
masterJohnTitor commentedon Jul 23, 2020
Nah, this issue occurs only when you go to the repo using the shortcut link.
Hmm, it's weird.
kidonng commentedon Jul 23, 2020
We don't have special logic for that button, it's just a normal link. It should make no difference if you directly visit https://github.com/JohnTitor/rust-forge
fregante commentedon Jul 23, 2020
We kind of have logic, but only if you're in a file or folder. Following these steps doesn't trigger that logic however:
JohnTitor commentedon Jul 23, 2020
Ahh, yep this isn't the shortcut issue but still extension issue, I guess.
Could someone confirm the issue happens if you set your personal token and visit my fork repo e.g.
johntitor/rust-forge(note that the capitalization, it should bejohntitor, notJohnTitor)?kidonng commentedon Jul 23, 2020
Confirmed
JohnTitor commentedon Jul 23, 2020
Thanks! Sorry for confusing, now we could say it's extension issue?
kidonng commentedon Jul 23, 2020
We know that it's caused by Refined GitHub, but it's not due to
forked-to(the fork button) butfork-source-link-same-viewyakov116 commentedon Jul 23, 2020
@kidonng how did you get it to error? What link?
[-]"shortcut to fork repos" makes "forked from owner/repo" link not work properly[/-][+]fork-source-link-same-view: The `forked from` link will be broken if the personal token is set[/+]kidonng commentedon Jul 23, 2020
https://github.com/johntitor/rust-forge
yakov116 commentedon Jul 23, 2020
its
isRepoRootfailinghttps://github.com/sindresorhus/refined-github/blob/fa73096928e267ec165452557d25a8226cc32d09/source/features/fork-source-link-same-view.tsx#L32-L35
fregante commentedon Jul 23, 2020
👆 this is why we ask for the exact link when opening an issue.
kidonng commentedon Jul 23, 2020
They did give us the right link in the image, but we ignored the case difference 😂
kidonng commentedon Jul 23, 2020
So the fork button will give you all lowercase link, and when you visit it, boom,
getDefaultBranchgives wrong infoyakov116 commentedon Jul 23, 2020
its not supposed to run on that page at all
refined-github/github-url-detection#24
refined-github/github-url-detection#25
[-]fork-source-link-same-view: The `forked from` link will be broken if the personal token is set[/-][+]`fork-source-link-same-view`: The `forked from` link will be broken if the case doesn't match[/+]fregante commentedon Jul 23, 2020
@yakov116 do you think refined-github/github-url-detection#25 will fix it?
yakov116 commentedon Jul 23, 2020
I think so (I did not have time to test the PR)