- Issue created by @mably
- Merge request !174Issue #3541675 by mably: Use routes instead of paths for Appearance pages special form handling → (Merged) created by mably
The following "Appearance" pages paths are currently hard coded in code:
$special_paths = [
'/admin/appearance',
'/admin/appearance/settings',
'/admin/appearance/settings/{theme}',
];
When you change your admin path with modules like "Rename admin paths" this doesn't work anymore.
Let's replace the paths by route names to fix the problem:
$special_route_names = [
'system.themes_page',
'system.theme_settings',
'system.theme_settings_theme',
];
Active
2.0
Code