Anchor links copied from project READMEs now add a ?tab=readme-ov-file
query parameter, making them harder to read
#70577
Replies: 6 comments 10 replies
-
It adds Screen.Recording.2024-01-20.at.21.28.46.mov |
Beta Was this translation helpful? Give feedback.
-
@pirate, I don't see why its inclusion is problematic, because your explanation is rather vague — how is it confusing? |
Beta Was this translation helpful? Give feedback.
-
Here's a quick fix using Tampermonkey: https://gist.github.com/vogler/74edff6de37c3a13eeff8c99c6bed910 const rewrite = () => location.search == '?tab=readme-ov-file' && (console.log('rewrite', location.href) || history.replaceState({}, null, location.href.replace(location.search, '')));
window.onpopstate = rewrite; // on navigation
rewrite(); // on initial load |
Beta Was this translation helpful? Give feedback.
-
When sharing GitHub URLs on sites that abbrevi... links, it's really frustrating to not be able to read the url because there's an unnecessary ?tab=readme-ov-file before the URL fragment: github.com/org/repo?tab=readme-ov... This was an original GitHub feature; clean deeplink urls for README headings |
Beta Was this translation helpful? Give feedback.
-
I use a highlighter browser extension which heavily depends on URL and params, which is the problematic part at least for me. |
Beta Was this translation helpful? Give feedback.
-
I'm curious... what does |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Product Feedback
Body
When copying anchor link to a specific section in a project's README, the URLs now contain an extra query parameter indicating the tab:
?tab=readme-ov-file
, e.g.:https://github.com/ArchiveBox/ArchiveBox?tab=readme-ov-file#quickstart
I understand why this is needed for other tabs, but it adds unnecessary clutter and makes links harder to read for the most common default case of linking to a section of the README.
The parameter can be manually deleted form the URL and it still works the same, but this extra cleanup work is something most people wont do. With the current default, we'll end up with tons of links shared around the internet that look like this:
https://github.com/ArchiveBox/ArchiveBox?tab=readme-ov-file#quickstart
instead of this:
https://github.com/ArchiveBox/ArchiveBox#quickstart
You can already see them starting to spread: https://www.google.com/search?q=%22readme-ov-file%22
If the UI/web team would kindly consider removing this parameter in the default case I think it may improve the link sharing UX for everyone! Github is doing such an awesome job lately with all the new features, I really appreciate the new tabs feature aside from this nit, and thank you to whoever ends up taking a look at this change!
Beta Was this translation helpful? Give feedback.
All reactions