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

Make markdown link handling less fragile #448

Open
vkleen opened this issue Apr 18, 2023 · 0 comments
Open

Make markdown link handling less fragile #448

vkleen opened this issue Apr 18, 2023 · 0 comments

Comments

@vkleen
Copy link
Contributor

vkleen commented Apr 18, 2023

In #445 I implemented a hacky fix for an issue we noticed when addressing #335. Namely, some links on the user manual markdown pages would first throw a 404 error but then redirect to the correct page anyway.

The going hypothesis is that we're using the gatsby redirect handling wrong in some subtle way. But in the interest of time, I made a somewhat fragile gatsby-transformer-remark plugin that rewrites links matching a regular expression ^\./(.*)\.md$ to /user-manual/\1. In particular, it makes strong assumptions on the topology of the website.

This issue is intended to track progress on this front and to remind us of our sins.

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

No branches or pull requests

1 participant