Skip to content
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

fix: broken "edit this page" link in windows #143

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

iju707
Copy link
Contributor

@iju707 iju707 commented Oct 18, 2023

In windows environment, "edit this page" has broken link.
It seems to be broken because the file path separator is different.

linux, mac : https://github.com/test/test/edit/master/a/b/c/index.md
windows : https://github.com/test/test/edit/master/a%5Cb%5Cc%5Cindex.md

so in toc, .File.Path need to be replaced "\" to "/"

@netlify
Copy link

netlify bot commented Oct 18, 2023

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit e92941e
🔍 Latest deploy log https://app.netlify.com/sites/hugo-hextra/deploys/652fc0ec48513b0008437093
😎 Deploy Preview https://deploy-preview-143--hugo-hextra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@imfing imfing merged commit 88b0f1b into imfing:main Oct 18, 2023
4 checks passed
@iju707 iju707 deleted the fix-edit-this-page branch October 19, 2023 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants