Skip to content

[6.x] Resolve delete redirects from the configured CP route - #15107

Merged
jasonvarga merged 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15106-cp-route-redirect
Aug 3, 2026
Merged

[6.x] Resolve delete redirects from the configured CP route#15107
jasonvarga merged 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15106-cp-route-redirect

Conversation

@lazerg

@lazerg lazerg commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

The delete action in the taxonomy and user-group detail views hardcoded its redirect to /cp/.... On sites that set a custom CP_ROUTE, that path no longer exists, so deleting either resource ends on a 404.

Both views now build the redirect with cp_url(), the same helper used everywhere else in the panel, so it follows whatever CP route is configured.

Fixes #15106

@jasonvarga
jasonvarga merged commit 114360a into statamic:6.x Aug 3, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[6.x] Wrong redirect path in taxonomy + user-group view

2 participants