admin theme not used on new admin path url

Created on 5 December 2024, 17 days ago

Hi, I enabled this module and activated the option to overwrite /admin path. Now, the admin theme is not used anymore on the admin pages using the new path.
Is this expected? Is there an easy custom hook to reset the admin theme for all paths within my new created one (/control-panel)?

💬 Support request
Status

Active

Version

3.0

Component

Documentation

Created by

🇩🇪Germany vistree

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

Comments & Activities

  • Issue created by @vistree
  • 🇯🇵Japan ptmkenny

    The admin theme should still be used on admin pages even when you overwrite the /admin path; what you report is not the expected behavior.

    I just tested this locally on a Drupal 11 site I am working on and as soon as I renamed the admin path, the link was updated and the admin theme was still being used. I checked several other admin pages and the admin theme was used in all cases.

    So there is probably something in your site that is interfering with the override. If you are using a custom admin theme, try using Gin or Claro to see whether the problem still occurs. Also check for any other contrib modules that affect redirects or routes.

  • 🇩🇪Germany vistree

    Hi @ptmkenny,
    thank you for your feedback. Can you please check
    /adminbereich/content/files
    /adminbereich/content/media

    Do you need to enable "use admin theme" in those views or do they work with there original path containing /admin ?

  • 🇯🇵Japan ptmkenny

    I think your issue is a duplicate of 🐛 Changing admin path makes content --> files disappear Active . This module cannot change the link paths in Views automatically.

    So, for the files view, you need to change the path in the Views UI (rename /admin as you do with this module). You may need to do the same with the Media view; no one else has reported about that yet.

Production build 0.71.5 2024