Account created on 5 October 2016, about 8 years ago
#

Recent comments

🇮🇳India Praveen3555

Hi
Thanks for noticing...

Can you please create a fork branch so I can push that change to the master branch.

Thanks.

🇮🇳India Praveen3555

Hi Hetal.solanki,
have approved the merge request and code is available now

🇮🇳India Praveen3555

Explaining about the module usage more specifically

🇮🇳India Praveen3555

This module is created in Drupal 9 & 10

🇮🇳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

Production build 0.71.5 2024