-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken heading anchors #1954
Comments
Good spot. Hadn't though of this. It will be because we're now using react-router's HashRouter for the frond-end routing. Doing a quick google, there are workarounds but I think this package exists to fix this problem. I've not tried it yet though. |
Another option would be to make a new page at |
I assume this is related (and thus already known), but opening any of the example pages in a new browser tab results in a 404 error. For example when opening the first item build in a new tab uses: https://shields.io/examples/build vs. https://shields.io/#/examples/build |
Huh, I can't reproduce that. Could you clarify? |
Steps to reproduce (I'm seeing this on Windows, haven't checked Ubuntu)
|
Thanks for reporting @calebcartwright I can reproduce this in prod and locally. At first page load 'Build' (for example) links to https://shields.io/examples/build . This works in the main window/tab, but 404 in a new tab. Then as soon as I've clicked one or more of them in that main window they're all generated as https://shields.io/#/examples/build back on the index page. Not quite sure why this is happening. We're not actually directly creating links here - they're being generated using React Router's Lines 14 to 21 in 7153ed0
to work with next.js |
This could be tackled now that #2906 is merged. I think it would be fixed by removing |
Links with heading anchors no longer seem to work on our homepage, for instance:
https://shields.io/#your-badge
As a consequence, our Readme link named Make your own badges! is broken and shows a blank page rather than bringing the user to the appropriate section on shields.io.
The text was updated successfully, but these errors were encountered: