WPIntell

Source evidence

Search page error

Hyyan WooCommerce Polylang Integration · support · 2021-08-30T23:27:00+00:00

complaintsentiment
highseverity
0.97relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 28 rows with source links

17.9% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
joseemanuelrr unresolved
I am presenting an error that only occurs in the search results page, it turns out that when wanting to change the language it adds “http: // store //” at the beginning of the URL, breaking everything. Please I need help. Thanks The page I need help with: [ log in to see the link] Hi, I also encountered that error and fixed it with this hack: // fix an error introduced by woo-poly-integration in Pages::translateShopUrl() // @see issue link https://github.com/hyyan/woo-poly-integration/issues/566 add_filter('pll_get_archive_url', 'fix_language_switcher_url_error_1', 9, 2); add_filter('pll_get_archive_url', 'fix_language_switcher_url_error_2', 11, 2); function fix_language_switcher_url_error_1($url, $language){ global $ARCHIVE_URL_BEFORE_WOO_POLY_HOOK; $ARCHIVE_URL_BEFORE_WOO_POLY_HOOK = $url; return $url; } function fix_language_switcher_url_error_2($url, $language){ global $ARCHIVE_URL_BEFORE_WOO_POLY_HOOK; if(is_search()){ $domain = get_option('siteurl'); if(stripos($url, $domain)===false){ $url = $ARCHIVE_URL_BEFORE_WOO_POLY_HOOK; } } return $url; } Also opened an issue on github: link https://github.com/hyyan/woo-poly-integration/issues/566 This reply was modified 4 years, 6 months ago by Andreas Münch .

Comments

1 shown
Andreas Münch 2021-11-18T16:18:00+00:00

Hi, I also encountered that error and fixed it with this hack: // fix an error introduced by woo-poly-integration in Pages::translateShopUrl() // @see issue link https://github.com/hyyan/woo-poly-integration/issues/566 add_filter('pll_get_archive_url', 'fix_language_switcher_url_error_1', 9, 2); add_filter('pll_get_archive_url', 'fix_language_switcher_url_error_2', 11, 2); function fix_language_switcher_url_error_1($url, $language){ global $ARCHIVE_URL_BEFORE_WOO_POLY_HOOK; $ARCHIVE_URL_BEFORE_WOO_POLY_HOOK = $url; return $url; } function fix_language_switcher_url_error_2($url, $language){ global $ARCHIVE_URL_BEFORE_WOO_POLY_HOOK; if(is_search()){ $domain = get_option('siteurl'); if(stripos($url, $domain)===false){ $url = $ARCHIVE_URL_BEFORE_WOO_POLY_HOOK; } } return $url; } Also opened an issue on github: link https://github.com/hyyan/woo-poly-integration/issues/566 This reply was modified 4 years, 6 months ago by Andreas Münch .