Do not hard code /admin/content

Created on 19 October 2021, over 2 years ago
Updated 14 June 2024, 12 days ago

Problem/Motivation

The Type Tray does not (fully) work with the Rename Admin Paths β†’ module

Steps to reproduce

  • Enable Type Tray
  • Enable Rename Admin Paths
  • Replace "admin" in admin path with something else
  • Visit /node/add
  • Find that the "View existing [TYPE] nodes" links do not work correctly (because they are hard coded)

Proposed resolution

Rather than hard code '/admin/content' in TypeTrayController (https://git.drupalcode.org/project/type_tray/-/blob/1.0.x/src/Controller...) use the value from the route.

Remaining tasks

Create a patch or merge request

User interface changes

None

API changes

None

Data model changes

None

πŸ“Œ Task
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mtift Minnesota, USA

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024