At the moment when generating nodes and Add an url alias for each node.
is checked, all path aliases are generated with und
langcode, even if nodes have a different langcode.
I was testing generated nodes with path aliases with Multiversion module and got errors like this: InvalidArgumentException: Alias path en has to start with a slash.
and InvalidArgumentException: Alias path zxx has to start with a slash.
in AliasStorage::save()
when the node langcode and its alias langcode are different.
I've attached a patch with a fix for this, all it does is to send the node langcode as argument to the AliasStorage::save()
, this way it will use the correct langcode, not the default one (und).
Comments
Comment #2
jeqqComment #3
jeqqComment #5
jeqqTest are failing because of #2944215: Aliases generated by PathItem::generateSampleValue() should start with a slash.
Comment #6
jeqq#2944215: Aliases generated by PathItem::generateSampleValue() should start with a slash Got fixed.
Comment #8
willzyx CreditAttribution: willzyx commented@jeqq Thanks for contributing! committed and pushed to 8.x