Problem/Motivation

Systems Tags used in Tokens fail when the Tagged node is not translated in the language CLI is accessed in. This means that generating URL-paths from CLI commands or during an import a NL-node can miss the System Tags Tokens when the Tagged node is not available in the default EN-language.

Steps to reproduce

Add a tokens to path settings, tag a node that does not have the default language as a translation and generate URL-paths in CLI

Proposed resolution

We need to add a Language Code to the function findOneByTag so we can pass it when getting the Token.

Remaining tasks

Test and apply patch

CommentFileSizeAuthor
system_tags_tokens.patch2.3 KBzerdiox

Comments

Zerdiox created an issue. See original summary.

  • lammensj committed 01df63c on 8.x-1.x authored by Zerdiox
    Issue #3262013 by Zerdiox: Add optional langcode to findOneByTag for...
lammensj’s picture

Status: Active » Fixed

Thank you for the patch!

Status: Fixed » Closed (fixed)

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