We are using View Mode Page with commerce product entities. When defining patterns for those without any restriction to languages (simply not using any of the language checkboxes), a menu link with a syntax like /product/389/technical-data
works without any problems, which means it gets aliased by Drupal and the output of the menu link is https://project.tld/products/some-product-name/technical-data.
We need different patterns for different languages, so we create one pattern for each language like:
/%/technical-data
(restricted to EN)
/%/technische-daten
(restricted to DE)
and so on.
Now, when placing menu items somewhere as /product/389/technical-data
, they should get aliased to /products/some-product-name/technical-data
. This works for all patterns (even the restricted ones) BUT only directly after saving the menu item. As soon as you do a drush cr
for example, after some deployment, those links with a pattern with language restriction show as /product/389/technical-data
again.
I was only able to reproduce that wrong behavior with commerce entities, not with node types.
1. Create a pattern like /%/pattern
for a commerce entity which has an alias
2. Restrict it to one or more languages
3. Create a menu link in any menu like /product/PID/pattern
(/product/1/pattern)
4. Notice that the aliased links gets displayed after saving that menu link.
5. drush cr
6. Notice that the link gets displayed without the alias now like https://project.tld/product/1/pattern
Active
4.0
Miscellaneous
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.