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

Relative links in blog posts are broken #90

Open
mstenta opened this issue Feb 6, 2024 · 1 comment
Open

Relative links in blog posts are broken #90

mstenta opened this issue Feb 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mstenta
Copy link
Member

mstenta commented Feb 6, 2024

@wotnak discovered that relative links in farmOS-community-blog posts are broken. Originally discovered in this PR comment: farmOS/farmOS-community-blog#25 (review)

I can confirm that the second link in this post on the live blog is also broken: https://farmos.org/blog/2024/farmOS-3.0.0/

In the post markdown, the link is to ../2023/farmOS-2.0.0, but in the HTML that is generated it leads to https://farmos.org/2023/farmOS-2.0.0 (without the /blog/).

@mstenta
Copy link
Member Author

mstenta commented Feb 7, 2024

@wotnak found a workaround:

Using post slugs instead of folder names in relative links seems to generate working links

For example, this works:

./2023/farmOS-2.0.0

But this does not:

../2023/farmOS-2.0.0

... despite the fact that the 2023 directory is in the parent directory.

We can work with that in mind for now, until we figure out how to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant