- Issue created by @thomasdik
- First commit to issue fork.
- Merge request !18Issue#3411402: Fixing RouterPathTranslatorSubscriber uses wrong param. → (Open) created by ankitv18
- last update
6 months ago 4 fail
When you use the RouterPathTranslator for example when you want to resolve the alias for a product entity an exception is thrown as uses the uuid not the uid.
Enable decoupled_router on Drupal commerce.
Call the decoupled_router.path_translation with the given path.
Replace the order of the variables in the RouterPathTranslatorSubscriber to match the logic.
Currently its:
$entity_param = $param_uses_uuid ? $entity->id() : $entity->uuid();
it should be:
$entity_param = $param_uses_uuid ? $entity->uuid() : $entity->id();
Now the uuid is set if the param requires the id.
Active
2.0
Code