Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
When switching the site language to English and clicking on the logo, instead of redirecting to the homepage, it leads to a different page or shows a 404 error.
Solution:
This issue occurs because the homepage has not been translated into the secondary language (English). When the site is translated, the homepage URL changes to include language parameters, such as

https://your-site.al/?lang=en

or

https://your-site.al/en/

. To resolve this, you need to translate the homepage into English. Once translated, clicking the logo in the English version will correctly redirect to the English homepage instead of showing a 404 error.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also advise 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. For further assistance, please visit our support forum at WPML Support Forum.

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 freelancerI 21 hours, 42 minutes ago.

Assisted by: Andrey.

Author Posts
February 26, 2025 at 4:32 pm #16752285

freelancerI

First Issue:
1. In the contact page: hidden link when user click switch language in English.
2. Try to click on the logo in the header left it will display a url wrong:

February 26, 2025 at 4:40 pm #16752329

Andrey
Supporter

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

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

Is it fixed? The logo link leads to the homepage in English, which seems correct. I am receiving the following: hidden link

If this is not what you mean, please elaborate a little more so I can better understand.

February 26, 2025 at 6:12 pm #16752799

freelancerI

For the first Issue:
Yes you are the right URL is correct but I don' understand way happened that when user switch language to English and click on the logo instead of to make direct to the home page: Display another page that i used when user will make a post listing.

For instance: hidden link
but this problem happened in each page when user switch language in English and click on the logo.

Step_2_Screenshot_3.png
Step_1_Screenshot_3.png
February 27, 2025 at 3:29 pm #16756963

Andrey
Supporter

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

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

That's correct. Let me explain. When you translate your site into a secondary language, the homepage changes to either hidden link or hidden link, depending on the URL format you selected. Therefore, if you access a translated page, the logo URL will lead to the homepage in that secondary language.

Currently, when you click on the logo, you encounter a 404 error. This happens because your homepage has not been translated yet. Once you translate it, the English version of the page will appear instead of the 404 error.

I hope this clarifies the issue.

February 27, 2025 at 9:39 pm #16758331

freelancerI

Yes I tested it works perfectly