Skip to content

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

Description

@FlxRobole

Bug description

The redirect path for the delete-action inside taxonomy and user-group detail view is currently hard-coded to e.g. "/cp/user-groups". See all affected .vue files here. Statamic instances which do NOT use "cp" as the default value for CP_ROUTE inside cp.php will therefore experience a broken redirect.

Expectation: The redirect route should not be hard-coded inside .vue files but be resolved from the globally configured cp route. Basically, a "remove" action should act exactly as in all other core entities (1. delete entity 2. redirect to list view of blueprint).

How to reproduce

  1. Change value for route inside cp.php to e.g. "admin"
  2. Start statamic, log into the control panel at "/admin" and create a new user-group (or taxonomy)
  3. Inside the detail view of the newly created user-group (or taxonomy) click on "Delete User Group" (or "Delete Taxonomy)
  4. A modal window pops up showing a 404 error

Logs

Environment

Statamic 6.*

Installation

Existing Laravel app

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions