-
-
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
Changing slug in a content entry results in duplicate entry until dev server is restarted #12668
Comments
Hi. I can't reproduce this in the currrent version. As you didn't share your own reproduction I can't tell if this has been fixed or not. Can you see if it's still happening, and if so then please share a repro. |
Hello @eikowagenknecht. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
@ascorbic I didn't create another reproduction since the original example repository (which I linked) already shows this behaviour. Here's a screencast. Please note the duplicate blog article at the end of it. |
OK the part that was unclear was that you were referring to changing the slug in frontmatter, because the entries in the example don't have them. I was changing it with the filename, which was why I couldn't reproduce it. |
No worries, I‘m glad the screencast cleared it up. Thanks‘s for the prompt resolution / PR! |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
astro dev
)Happens in the most basic Blog example as well.
What's the expected result?
After changing the slug, the old one should instantly not be available any more (just like it is after a restart of the dev server).
Link to Minimal Reproducible Example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/blog?file=src%2Fcontent%2Fblog%2Ffirst-post.md
Participation
The text was updated successfully, but these errors were encountered: