When using metatag_hreflang with domain_access (each domain a different default language), I can get the "x-default" url to work. But the alternatives, [node:url-nl] etc. never show up for translated nodes.

Also x-default doesn't show the aliased url, only the raw http://.../node/x url.

Is this a problem with tokens or with metatag?

Comments

Anonymous’s picture

morningtime created an issue. See original summary.

Anonymous’s picture

Issue summary: View changes
DamienMcKenna’s picture

It might be a subtle combination of different things. What token are you using as the x-default? Are you using Entity Translation for handling the node translations or the core Content Translation module?

Anonymous’s picture

x-default is [node:source:url]
Others [node:url-de]

If I add all the URLs manually from the node/edit screen, I get the expected results.

It seems the token [node:url-de] etc. fails to render? And the [node:source:url] fails to get the path alias.

DamienMcKenna’s picture

Again, are you using Entity Translation or Content Translation to manage the translations? It make a big difference.

Anonymous’s picture

Content Translation plus whatever i18n modules, not using Entity Translation. Should I switch?

DamienMcKenna’s picture

Status: Active » Postponed
Related issues: +#2627598: Custom tokens for hreflang not working

I'm going to write some tests to confirm what works and what doesn't, but I'm going to move this over to #2627598: Custom tokens for hreflang not working first.