When you have a different path per language, the value of the path field gets overwritten each time you save the node in a particular language.

When you make this field translatable, the attached path fixes this problem. It works, but I'm not sure if this is the correct implementation.

CommentFileSizeAuthor
#2 edit_support_path_for-2883457-1.patch681 bytesharrrrrrr

Comments

harrrrrrr created an issue. See original summary.

harrrrrrr’s picture

StatusFileSize
new681 bytes
spleshka’s picture

Hi Simon, thanks for raising this issue. Could you please add the use case which you tested with this patch? The module has several general use cases:
1. Save node/entity from the edit form
2. Save node/entity programmatically
3. Create/update path from pathauto UI

I wonder which cases are covered by your patch. Potentially the entity should be translated a bit earlier than it's done in the patch, but it needs a bit deeper research and testing.

  • Spleshka committed 2c60438 on 8.x-1.x
    Issue #2883457 by harrrrrrr, Spleshka: Support path for each language in...
spleshka’s picture

Status: Active » Fixed

Was able to reproduce the issue locally - fixed the problem. Thanks once again for your patch - it was a good inspiration for the fix.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.