You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened.
I am using TranslatePress to create a multi-lang site. But social platforms tend to pick up wrong meta info when sharing translated pages. I have already configured all the meta info correctly, except og:url which Yoast adds to every page.
Currently, og:url outputs wrongly on translated pages. And there is no way to configure it and make it the same as the actual visiting URL.
My site default language is English. As the og:url is incorrect, when trying to share the translated posts via Facebook, LinkedIn, etc, no matter via “AddThis” or share natively by pasting links, it is not able to pick up the translated metadata, eg, title and description.
Please describe what you expected to happen and why.
og:url should always reflect the current visiting URL correctly.
(Btw, Are there any settings to configure og:url output? or to remove it?)
How can we reproduce this behavior?
It looks like in most cases, the og:url is incorrect. But some are correct which I have no idea why.
I think this is indexables-related. Can you try resetting the indexables using the Yoast Test Helper plugin (Tools -> Yoast Test -> Reset indexables & migrations). Visit one of the problematic pages after that (without re-running the index) and see if that fixes the issue?
The same thing we're doing for the canonical, and the opengraph_url is based on the canonical, but without the canonical filter.
I didn't dig deep as to why the canonical is broke, but probably has something to do with the fact that TranslatePress filters the home_url() and adds the current language to it.
Please give us a description of what happened.
I am using TranslatePress to create a multi-lang site. But social platforms tend to pick up wrong meta info when sharing translated pages. I have already configured all the meta info correctly, except
og:url
which Yoast adds to every page.Currently, og:url outputs wrongly on translated pages. And there is no way to configure it and make it the same as the actual visiting URL.
My site default language is English. As the
og:url
is incorrect, when trying to share the translated posts via Facebook, LinkedIn, etc, no matter via “AddThis” or share natively by pasting links, it is not able to pick up the translated metadata, eg, title and description.Please describe what you expected to happen and why.
og:url should always reflect the current visiting URL correctly.
(Btw, Are there any settings to configure og:url output? or to remove it?)
How can we reproduce this behavior?
It looks like in most cases, the og:url is incorrect. But some are correct which I have no idea why.
Incorrect:
view-source:https://cuhkintouch.cpr.cuhk.edu.hk/tc/
view-source:https://cuhkintouch.cpr.cuhk.edu.hk/tc/2020/03/2094/
view-source:https://cuhkintouch.cpr.cuhk.edu.hk/tc/2020/03/1645/
view-source:https://cuhkintouch.cpr.cuhk.edu.hk/tc/making-news/
view-source:https://cuhkintouch.cpr.cuhk.edu.hk/tc/privacy/
More: https://drive.google.com/drive/folders/1-Btq8fRPWHBnBG_iw-N0Tpvw9sIR4EKB?usp=sharing
Correct:
view-source:https://cuhkintouch.cpr.cuhk.edu.hk/tc/2020/03/311/
view-source:https://cuhkintouch.cpr.cuhk.edu.hk/tc/2020/02/752/
Technical info
Used versions
The text was updated successfully, but these errors were encountered: