Token [current-page:url] is missing the language prefix in multi-language site setup

fr flag

Using Drupal v9.4 and Token v1.10.0, the [current-page:url] doesn't seem to include the language prefix.

The setup is I have two languages: English and Spanish. I created a View where the path is /articles so I am able to access the View page using /en/articles and /en-gb/articles. I then added a Canonical URL using the Metatags module using the said token but it doesn't work.

leymannx avatar
ne flag
You are missing a question. Anyways, I think there was an issue on DO. Also try
cv flag

If you need to use current page url, you could use [current-request:uri] for multilingal page.


  • access to, [current-request:uri] reveals

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.