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

Updating term slug twice results in server error #11020

Open
daun opened this issue Oct 27, 2024 · 0 comments · May be fixed by #11056
Open

Updating term slug twice results in server error #11020

daun opened this issue Oct 27, 2024 · 0 comments · May be fixed by #11056

Comments

@daun
Copy link
Contributor

daun commented Oct 27, 2024

Bug description

When updating a term's slug in the control panel and saving, the first save goes okay and updates the term. However, when updating the slug again, saving now results in a 404 as the edit form is trying to post the data to the previous slug's route.

Only applies when the Continue Editing option is selected on the Save button.

Looks like the slug is part of the post/patch route and doesn't get updated when changing the slug.

https://statamic.test/cp/taxonomies/tags/terms/{slug}/default

How to reproduce

  • Create taxonomy tags
  • Add new term A and publish
  • Return to listing
  • Click on A
  • Select Continue Editing on the Save button
  • Change slug to b
  • Save
  • Change slug to c
  • Should result in Server error toast and 404 network request to old patch route

Logs

No response

Environment

Environment
Application Name: Statamic
Laravel Version: 11.29.0
PHP Version: 8.3.3
Composer Version: 2.5.1
Environment: local
Debug Mode: ENABLED
URL: statamic-terms-test.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.34.0 Solo

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants