Problem/Motivation

Route validation on the missing route causes the inability to save settings even if the "Enable cancel button for ..." is unchecked.
It throws the error "The path ... is either invalid or you do not have access to it."

error

Proposed resolution

Adding a check for route only if the cancel is enabled.

CommentFileSizeAuthor
Screenshot From 2025-12-04 15-04-27.png90.72 KBboddy
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

boddy created an issue. See original summary.

boddy’s picture

Assigned: boddy » Unassigned
Status: Active » Needs review

Fixed conditions to not validate the route if the "Enable cancel button for ..." is unchecked.
Please review the merge request.

heddn’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

Can we add test coverage for this?

  • boddy committed d4fabc69 on 8.x-1.x
    fix: #3561484 Route validation causes the inability to save settings...
boddy’s picture

Status: Needs work » Fixed
Issue tags: -Needs tests

Added the test coverage for a missing route path in the 'admin/config/content/cancel-button'.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.