-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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: don't strip "slug" from content layer data #12168
Conversation
🦋 Changeset detectedLatest commit: 0a16aa8 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Some tests are failing 😢 |
🎉 |
Will this land also in Astro v4? The same issue there when using content layer <3 |
No, because the issue was filed against Astro v5 |
I couldn't reproduce this on main when I was testing it, so I made it against v5. |
Thank you @ascorbic . I'll create a new issue with a reproduction, because I don't know if it is the exact same issue, as it concerns using |
I apologize, @ascorbic you are correct , in Astro v4 this is fine. Edit: I had to change the way I access the One thing surprised me though, that a |
Changes
The backward compat changes had introduced a bug, where content layer collections were having their
slug
field stripped. This PR fixes it so it only happens for legacy collections. This bug is not present in main.Fixes #12162
Testing
Added a test
Docs