Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 3 replies, has 0 voices.

Last updated by Andrey 1 week, 2 days ago.

Assisted by: Andrey.

Author Posts
November 21, 2025 at 12:25 pm #17598905

zaneR-3

As you can see in the screenshot, when you click on the black menu on the first page, an error appears.

November 21, 2025 at 12:43 pm #17599034

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

I have looked into this issue further.

When I click the black menu item on the homepage, it leads to this URL:
hidden link
This results in a 404 error, which is expected, because the link does not match your current URL structure.

The correct URL for this product category is:
hidden link
This link loads correctly.

The mismatch is because the first link uses the /lv/ language directory format, which is used when your site is configured with “Different languages in directories.”
However, your site is currently using the “Language name added as a parameter” format — ?lang=lv.

To fix this, you have two options:

Option 1 — Update the menu link

Adjust the black menu item link to:
hidden link

Option 2 — Change the URL structure

Switch your site to “Different languages in directories” in:
WPML → Languages → Language URL format

This will make URLs like /lv/... valid again.

Please choose the option that best fits your preferred URL structure.

I hope this helps.

Screenshot-2025-11-21-at-14-34-24.png
Languages-‹-Apiceuticals-—-WordPress.png
November 21, 2025 at 4:13 pm #17599854

zaneR-3

after performing the above steps, the problem did not disappear, and in addition the shop link stopped working. So, this solution did not work. I can see for myself that the link is wrong, the question is, where to fix it?

November 21, 2025 at 4:20 pm #17599860

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for your feedback.

Have you tried checking the page translation itself?

Please follow these steps:
1.Make a small change to the original page (for example, add a space or a character) and update it.
2. Open the translation — this will launch the Advanced Translation Editor.
3. Look for the link. If needed, use the search field in the editor to look for the link.
4. If the link appears in the translation, update it accordingly and complete the translation.