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."

Proposed resolution
Adding a check for route only if the cancel is enabled.
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot From 2025-12-04 15-04-27.png | 90.72 KB | boddy |
Issue fork cancel_button-3561484
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
Comment #3
boddy commentedFixed conditions to not validate the route if the "Enable cancel button for ..." is unchecked.
Please review the merge request.
Comment #4
heddnCan we add test coverage for this?
Comment #6
boddy commentedAdded the test coverage for a missing route path in the 'admin/config/content/cancel-button'.