ナビゲーションをスキップする

Waiting for author

Reported for: WPML Multilingual CMS 4.4.8

Overview of the issue

When using Premmerce Permalink Manager for Woocommerce with WPML 4.4.8, and you switch to another language, the language switcher (and hreflang) will point to a URL such as https://URL.com/en/?lang=en.

Workaround

We’re working with the plugin author on a fix for this issue and he will implement some changes on his side.
In the meantime you can follow these steps to fix the issue on your site:

Please backup your WordPress site files and database.
Modify woo-permalink-manager/src/Frontend/Frontend.php LINE 58:

from

if ( $key != $sitepress->get_default_language() ) {

to

$isGetParamUrlFormat = apply_filters( 'wpml_setting', 0, 'language_negotiation_type' ) == '3';
if ( $key != $sitepress->get_default_language() && $isGetParamUrlFormat) {

Next steps to resolve this issue

We’ve contacted the author about this issue as it does require a fix on his side. Unfortunately we’re yet to receive an update of when this will be resolved, so it would be best to contact them directly on their support forum to help move this along.

2 返答 へ “Premmerce Permalink Manager for Woocommerce - Language switcher and hreflang points to wrong URL”

  1. Hi

    This fixed the problem.

    We will be waiting for fix in future releases, but in the meantime it works.

    Thanks

    • Hey there,
      We are glad it worked out. We will update here as soon as we have a confirmation from both teams. 🙂

返答する

トピックからそれないようにし、他のユーザーを尊重してください。この投稿に関係のない問題についてサポートが必要な場合は、サポート フォーラムを使用してチャットを開始するか、チケットを送信してください。

これらのタグを使用できます:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>