Перейти к содержимому Перейти к боковой панели

Эта тема решена. Вот описание проблемы и ее решения.

Problem:
If you're experiencing issues with being redirected to the homepage when trying to enter product categories in the German version of your website, it might be due to incorrect translation settings.
Solution:
We recommend checking the translation of your category slugs in WPML. Here's how you can fix it:
1. Go to WPML → String Translation.
2. Search for 'product-category' and check its translation.
3. Ensure that the translation matches the expected slug in the URL (e.g., 'produkt-kategorie' for German).
4. Correct the translation if necessary to ensure it aligns with your URL structure.

This solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.

Это форум технической поддержки WPML – плагина для многоязычной WordPress.

Доступно для чтения всем, но только клиенты, купившие WPML, могут оставлять сообщения. Сотрудники WPML отвечают на сообщения форума 6 дней в неделю, 22 часов в сутки.

Эта тема содержит 7 ответов, имеет 0 voices.

Последнее обновление: Andrey 1 неделя, 1 день назад.

При содействии: Andrey.

Автор Сообщения
27 ноября, 2025 в 9:54 дп #17614396

evgeniyaP

Предыстория вопроса:
I am trying to enter product categories in the German version of my website, but every time I attempt this, it redirects me to the homepage. The issue can be seen at the following link: скрытая ссылка

Симптомы:
When trying to enter product categories in the German version, I am redirected to the homepage instead of the expected page.

Вопросы:
Why does entering product categories in the German version redirect me to the homepage?
How can I fix the redirection issue when accessing product categories in German?

27 ноября, 2025 в 10:46 дп #17614537

Andrey
Сторонник WPML с 06/2013

Языки: Английский (English ) Русский (Русский )

Часовой пояс: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

To better understand what is happening, could you please show the exact steps you follow when entering the product categories in the German version?
Screenshots would be very helpful.

Once I see your process, I will try to reproduce the issue locally as well.

27 ноября, 2025 в 11:01 дп #17614567

evgeniyaP

For example I want to see food category

Somehow it redirects me to product page

Снимок экрана 2025-11-27 в 14.59.22.png
Снимок экрана 2025-11-27 в 14.59.38.png
Снимок экрана 2025-11-27 в 14.59.51.png
27 ноября, 2025 в 1:22 пп #17615108

Andrey
Сторонник WPML с 06/2013

Языки: Английский (English ) Русский (Русский )

Часовой пояс: Europe/Kyiv (GMT+02:00)

I have tested this on your site, and it looks that you may have a redirect configured somewhere.

Do you have a staging site where we can test this with only the following plugins enabled?
• WPML
• WPML Multilingual & Multicurrency for WooCommerce
• WooCommerce

This will help us determine whether the issue is coming from WPML or from another plugin or custom code.

28 ноября, 2025 в 11:32 дп #17617914

evgeniyaP

No we don't have staging site 🙁 Sorry for long answer

28 ноября, 2025 в 3:52 пп #17618671

Andrey
Сторонник WPML с 06/2013

Языки: Английский (English ) Русский (Русский )

Часовой пояс: Europe/Kyiv (GMT+02:00)

I need to request temporary access (wp-admin and FTP) to your site where the issue can be reproduced, if possible. This will allow me to investigate the problem more effectively. When you log in to leave your next reply, you will find the required private fields below the comment area. Any information you enter there is private—only you and I will be able to see it.

I may also need to replicate your site locally. For that, I would temporarily install the Duplicator or All-in-One Migration plugin to generate a copy of your site (including the database). If you prefer to do this yourself, you can create the package and share the downloaded ZIP file instead.

Let me know how you feel about this.

3 декабря, 2025 в 4:57 пп #17631809

Andrey
Сторонник WPML с 06/2013

Языки: Английский (English ) Русский (Русский )

Часовой пояс: Europe/Kyiv (GMT+02:00)

Thank you for providing the details.

I was able to locate and resolve the issue.

In your menu, the category link was set to:
скрытая ссылка

However, the slug product-category had been translated to produkt-kategorie, which created this redirection.

To fix this, I went to WPML → String Translation, searched for product-category, and corrected the translation. The link now works correctly.

Hundefutter-4-Paws-Avenue.png
Screenshot-2025-12-03-at-18-50-49.png
4 декабря, 2025 в 10:34 дп #17633513

evgeniyaP

Thank you so much! I will never guess how to fix problem this way. Have a great day!

4 декабря, 2025 в 11:55 дп #17633923

Andrey
Сторонник WPML с 06/2013

Языки: Английский (English ) Русский (Русский )

Часовой пояс: Europe/Kyiv (GMT+02:00)

Thank you! Have a great one, too!