-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
"Edit page" link on TOC is broken #11994
Comments
It seems that this has already been fixed but not deployed to production |
If it is not fixed, I would like to work on the issue. |
@wackerow |
A patch was put up for this, but it appears there is still a bug with it: // Inside /src/lib/utils/editPath.ts, we return:
join(EDIT_CONTENT_URL, CONTENT_DIR, relativePath, "index.md")
We should use construct a URL with ie. @HiroyukiNaito Assigning you for this =) |
@wackerow Thanks for the tips! I work on it. |
Hey @HiroyukiNaito! Thanks for offering to patch this... Just want to mention that this bug is somewhat important since it's breaking all the edit links in the docs. We were hoping to get this patched ASAP... Any chance you're able to make this patch in the next few hours? Otherwise I may put up a patch so we can hot-fix the deploy planned for later today. Sorry for the time crunch 🙏 |
Hey @HiroyukiNaito, apologies for jumping in on this, but given the nature of this bug we wanted to get a patch up for this ASAP... I put up a PR to fix, but thank you for offering to help! |
hot-fix: update page edit path logic [Fixes #11994]
@wackerow Sure, thanks for notifying that! |
@corwintines @HiroyukiNaito |
Describe the bug
The "Edit page" button link on the top of the TOC is broken.
Currently, it will redirect to e.g.:
https://ethereum.org/github.com/ethereum/ethereum-org-website/tree/dev/public/content/developers/docs/index.md
But it should be:
https://github.com/ethereum/ethereum-org-website/tree/dev/public/content/developers/docs/index.md
instead.
It seems to be the link href is parsed as a relative path, but we should treat it as an absolute path.
To reproduce
Expected behavior
It should be redirected to Github, instead of ethereum.org.
Screenshots
No response
Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional context
No response
Would you like to work on this issue?
The text was updated successfully, but these errors were encountered: