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

createContentLoader doesn't respect cleanUrls #4331

Open
4 tasks done
Joelius300 opened this issue Nov 1, 2024 · 0 comments
Open
4 tasks done

createContentLoader doesn't respect cleanUrls #4331

Joelius300 opened this issue Nov 1, 2024 · 0 comments
Assignees
Labels
bug Something isn't working build Related to the build system

Comments

@Joelius300
Copy link

Describe the bug

When using createContentLoader to render excerpts or whole pages, it doesn't respect the cleanUrls settings and produces links with .html appended.

Reproduction

https://stackblitz.com/edit/vite-kyxjcz?file=docs%2Findex.md

Expected behavior

Produce clean urls like everywhere else

System Info

See stackblitz

Additional context

It seems like the call to md.render in createContentLoader does not receive the appropriate MarkdownEnv. For comparison, here it is presumably correctly in createMarkdownToVueRenderFn

Validations

@Joelius300 Joelius300 added the bug: pending triage Maybe a bug, waiting for confirmation label Nov 1, 2024
@brc-dd brc-dd added bug Something isn't working build Related to the build system and removed bug: pending triage Maybe a bug, waiting for confirmation labels Nov 1, 2024
@brc-dd brc-dd self-assigned this Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Related to the build system
Projects
None yet
Development

No branches or pull requests

2 participants