Use routes for instead of paths for Appearance pages special form

Created on 16 August 2025, 7 days ago

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',
    ];
Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France mably

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024