Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293910

Return translated title for "Content: ID" views contextual filter

$
0
0

When using a the "Content: ID" contextual views filter (for example to filter nodes that reference the current node), you can use the argument to override the title. Here the original language label is returned instead of the translation from the context.

Similar to https://www.drupal.org/project/drupal/issues/2765297

Steps to reproduce:

  • Enable content_translation module
  • Add any language
  • Enable content translation for nodes
  • Create a node and translate it
  • Create a view that uses the "Contextual filter""Content: ID"
  • Ensure that "Replace title" is checked, and {{ arguments.nid }} is used as the title replacement
  • Look at the view on a non-English page with the id of a translated node as context
  • The English title will be shown instead of the translation - this is the bug.

Viewing all articles
Browse latest Browse all 293910

Trending Articles