Fix links for GRID | LIST switcher to use the right URL from Route for node.add_page route

Created on 12 March 2023, over 1 year ago
Updated 15 March 2023, over 1 year ago

Problem/Motivation

Having an error when switching between GRID or LIST

Proposed resolution

Have a variable - node_add_page_url: A URL for the node add page using the routing system.
which can be used as {{ node_add_page_url }} in the type_tray_page twig template file.
Having

    'type_tray_page' => [
      'variables' => [
        'items' => NULL,
        'layout' => NULL,
        'category_labels' => NULL,
        'node_add_page_url' => Url::fromRoute('node.add_page')->toString(),
      ],
    ],

Remaining tasks

  • File an issue
  • Patch/MR
  • Test
  • Review

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

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

Comments & Activities

Production build 0.71.5 2024