The path of the message.messages
route is defined as : admin/content/message
This is also the menu entry: content > message (in the toolbar)
The path of the message.multiple_delete_confirm
route is defined as : admin/content/message/delete
Unfortunately, the view view.message.page_1
and all other paths have admin/content/messages as a base path (with a "s" at the end of messages).
This leads to some missing functionalities... I think we should choose with or without "s" for everywhere...
Comment | File | Size | Author |
---|---|---|---|
#15 | message2.png | 42.81 KB | balagan |
#13 | message.png | 39.97 KB | balagan |
Issue fork message-3124695
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
DuneBLComment #3
cosolom CreditAttribution: cosolom commentedI think that need to merge this routes in one. Now admin/content/message is uninformative and admin/content/messages should be used as main route.
Comment #4
liquidcms CreditAttribution: liquidcms commentedwould this also fix why there is no route to the message entity?
even drupal console created entities get a canonical link to the entity at: admin/structure/message/[mid]
Comment #7
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commentedComment #8
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commentedComment #11
balagan CreditAttribution: balagan at Gizra commentedNow we have a view with path: 'admin/content/message' and this path is also specified in the message.routing.yml file
Comment #12
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commented@balagan,
The view is optional. If the view is not installed, the entity list is displayed. The view overrides the entity list when it is installed.
I am open to removing the route from message.routing.yml.
Comment #13
balagan CreditAttribution: balagan at Gizra commentedThe problem is, currently the Messages tab under /admin/content doesn't display. As the view is optional, maybe should revert this change and keep the different paths?
Comment #14
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commentedThe missing message tab is a real issue. I think the EntityList should be removed from message.routing.yml and update message.links.task.yml. Or, maybe the view can be updated to have a tab.
I am opposed to having two paths. It isn't very clear. The view is better than the entity list, both in appearance and because site builders can modify a view.
If you want to retain the entity list and allow the view to override it, and retain the message tab, we can try updating the view to have a tab. Another option is to create a controller for the route. If the view is present display the view, otherwise the entity list.
Comment #15
balagan CreditAttribution: balagan at Gizra commentedRemoving the message.messages route from the message.routing.yml file and its link from the message.links.yml file solves the problem.
The Message tab displays, linking to the view, and the link from the toolbar dropdown is removed.
Comment #18
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commented