Changing slug in a content entry results in duplicate entry until dev server is restarted
eikowagenknecht opened this issue · 0 comments
eikowagenknecht commented
Astro Info
> *****.de@1.0.0 astro C:\***\***\***.de
> astro "info"
Astro v5.0.3
Node v20.11.1
System Windows (x64)
Package Manager pnpm
Output static
Adapter none
Integrations @astrojs/tailwind
@astrojs/mdx
@astrojs/react
@astrojs/sitemap
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
- Start dev server (
astro dev
) - Change slug of an article
- See that both the old and the new slug work and are shown in getCollection powered lists
- Optional: Change the slug again and see more duplicates appearing
- Restart the dev server
- See that only the new slug exists
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
Participation
- I am willing to submit a pull request for this issue.