Set the media dialog route (/editor/media/dialog) as an admin route

Created on 22 May 2024, 2 months ago
Updated 13 June 2024, about 1 month ago

I noticed a few differences between the Media library dialog when launched in Gutenberg vs when it's just on a regular Drupal field. Turns out this is because my admin theme was overriding the media library templates, which wasn't happening when the library is loaded via ajax from a non-admin route.

This is only an issue when the user is using an Admin theme, and is has the "Use the administration theme when editing or creating content" setting enabled, but I feel like that's most people these days. We can conditionally have the route be set as admin by using the _node_operation_route option that the node module uses for the same thing. MR incoming!

Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

🇨🇦Canada drclaw

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

Merge Requests

Comments & Activities

  • Pipeline finished with Failed
    3 months ago
    Total: 241s
    #165678
  • Pipeline finished with Failed
    3 months ago
    Total: 314s
    #165968
  • Pipeline finished with Failed
    3 months ago
    #165972
  • Pipeline finished with Failed
    3 months ago
    Total: 199s
    #165973
  • Pipeline finished with Failed
    2 months ago
    Total: 236s
    #176257
  • Pipeline finished with Failed
    2 months ago
    Total: 148s
    #176259
  • Issue created by @drclaw
  • Pipeline finished with Success
    2 months ago
    Total: 231s
    #179720
  • Status changed to Needs review 2 months ago
  • Pipeline finished with Success
    2 months ago
    Total: 328s
    #181285
  • Status changed to Fixed about 2 months ago
  • Pipeline finished with Failed
    about 2 months ago
    Total: 175s
    #187366
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Pipeline finished with Success
    about 1 month ago
    Total: 152s
    #201032
  • Pipeline finished with Canceled
    about 1 month ago
    Total: 166s
    #201039
  • Pipeline finished with Success
    about 1 month ago
    Total: 181s
    #201042
  • Pipeline finished with Success
    about 1 month ago
    Total: 178s
    #201050
  • Pipeline finished with Success
    about 1 month ago
    #201052
  • Pipeline finished with Success
    about 1 month ago
    Total: 326s
    #201060
  • Pipeline finished with Success
    about 1 month ago
    Total: 178s
    #201150
  • Pipeline finished with Success
    about 1 month ago
    #201415
  • Pipeline finished with Success
    about 1 month ago
    Total: 157s
    #201444
  • Pipeline finished with Failed
    about 1 month ago
    Total: 205s
    #201479
  • Pipeline finished with Success
    26 days ago
    Total: 1130744s
    #202204
  • Pipeline finished with Failed
    9 days ago
    Total: 161s
    #227510
  • Pipeline finished with Failed
    9 days ago
    Total: 164s
    #227512
  • Pipeline finished with Success
    9 days ago
    Total: 158s
    #227785
  • Pipeline finished with Success
    9 days ago
    #227888
  • Pipeline finished with Success
    8 days ago
    Total: 162s
    #228321
  • Pipeline finished with Success
    8 days ago
    Total: 165s
    #228337
  • Pipeline finished with Success
    8 days ago
    Total: 167s
    #228802
  • Pipeline finished with Success
    8 days ago
    Total: 167s
    #228842
Production build 0.69.0 2024