Closed (fixed)
Project:
Metatag
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2018 at 04:26 UTC
Updated:
12 Apr 2018 at 12:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
zenimagine commentedComment #3
damienmckennaWhat we need is #2956982: Port hreflang tokens to D8.
Comment #4
zenimagine commentedThank you, but I do not know how to fill these fields. I added a new screenshot. Is it well filled?
If I use "Query / Session Parameter" lang
Comment #5
damienmckennaFirst off - you aren't using the 'URL' option for language detection? That would make it so you go to e.g. https://www.mydomaine.com/fr/ for French, https://www.mydomaine.com/en/ for English, etc, which results in tidier URLs.
Comment #6
zenimagine commentedUsing this method will break the link I already have on my site. I would like to do like twitter and use the url parameter.
You advised against this way of doing things ?
Comment #7
damienmckennaI guess if it works for you then so be it.
And in that case, using [node:url:absolute]?lang=LANGCODE would work for you.
Comment #8
zenimagine commentedOk, what should I put in "Default locale (x-default)"?
I have content to create in English and translated into French.
I also have French content translated into English.
Which token to use?
Another question :
If I opt for directories:
https://www.mydomaine.com/fr/article/nid
I have a lot of views on my site that uses the "Raw value from URL" context filter. How is it going with a directory? the current value is 2. Do I have to change it to 3?
Comment #9
damienmckennaThe 'x-default' value is supposed to point to the source language for the content, and the hrelang value for that language is supposed to be empty; there's custom logic in the D7 version to handle this.