Problem/Motivation

It would be good to explain use cases or examples for the use of the module

Comments

Nelo_Drup created an issue. See original summary.

praveen3555’s picture

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

praveen3555’s picture

Status: Active » Fixed
praveen3555’s picture

Status: Fixed » Closed (outdated)
praveen3555’s picture

Status: Closed (outdated) » Fixed
praveen3555’s picture

Status: Fixed » Closed (fixed)