탐색 건너뛰기

Open

Reported for: WPML SEO 2.1.0.1

Topic Tags: Compatibility

Overview of the issue

The Rank Math SEO plugin includes an advanced setting to strip the product base from product URLs, so you might have a product display at the URL site.com/ufo-detector/ instead of site.com/product/ufo-detector/.

When using that setting it prevents WPML from automatically updating links to translations of the product.

If you have an English page which includes a link to /product/ufo-detector/, when you translate the page to Spanish the link would automatically update to the Spanish product at /producto/detector-de-ovni/.

But if you strip the product base WPML cannot detect that this is an internal link to a product, and cannot update the link to point to the translated product, in which case the original link will be left unaltered.

If you use the Rank Math setting to strip the product base, then after translating content you will need to manually edit the translations to fix the links.

Workaround

If the links in the original post use relative URLs rather than absolute URLs then the setting in WPML > Languages to “Make themes work multilingual” will handle redirecting to the correct translated products, in which case manually correcting the links in the translated pages can be avoided.

답장을 남겨주세요

주제를 유지하고 다른 사람을 존중하십시오. 이 게시물과 관련 없는 문제에 대한 도움이 필요한 경우 지원 포럼을 사용하여 채팅을 시작하거나 티켓을 제출하십시오.

다음 태그를 사용할 수 있습니다.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>