Skip to content

Bugfix/settings routes reordering#16610

Merged
brandonkelly merged 4 commits into5.xfrom
bugfix/settings-routes-reordering
Jan 31, 2025
Merged

Bugfix/settings routes reordering#16610
brandonkelly merged 4 commits into5.xfrom
bugfix/settings-routes-reordering

Conversation

@i-just
Copy link
Copy Markdown
Contributor

@i-just i-just commented Jan 31, 2025

Description

The markup for the control panel > Settings > Routes changed slightly in 5.6.0. This introduced a bug when trying to reorder the routes in the control panel, as the <p> element was incorrectly counted as a route.

The fix for the problem is in the routes.js file. The changes in the services/Routes.php and web/twig/variables/Routes.php are to prevent this invalid route from being returned and causing errors.

To clean the config after this error occurred, run:
php craft pc/remove routes..sortOrder
and then
php craft pc/rebuild

Related issues

reported by @olivierbon

@brandonkelly brandonkelly merged commit f1aeb2a into 5.x Jan 31, 2025
@brandonkelly brandonkelly deleted the bugfix/settings-routes-reordering branch January 31, 2025 22:06
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.

2 participants