Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/settings routes reordering #16610

Merged
merged 4 commits into from
Jan 31, 2025
Merged

Conversation

i-just
Copy link
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