- Issue created by @Nelo_Drup
- 🇮🇳India Praveen3555
we can use it like
1. Drupal.path('entity.node.canonical', {'node': 7})
2. Drupal.alias('entity.node.canonical', {'node': 7})The first parameter would be the route name like the one provided above and the second parameter would be parameters which will be required to that route.
Responses for the above would be like this
1. {path: '/node/7'}
2. {path: '/unicorn'}If we want absolute URL or other options that to be added to that route, we need to add it as a third parameter
- Status changed to Closed: outdated
over 1 year ago 3:43am 28 July 2023 - Status changed to Fixed
over 1 year ago 3:44am 28 July 2023