Strange URLS - Joomla multilingual website

General questions regarding the use of languages in Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
sarah444
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Dec 27, 2015 11:42 am
Location: France
Contact:

Strange URLS - Joomla multilingual website

Post by sarah444 » Sat Dec 30, 2017 1:04 pm

Hi,

My site navettedisney-aeroport.com multilingual site and created with joomla 3.8.3

The site works well and the Multilingual Status is ok, but I have strange URLS:

I followed the tutorial of Joomla! Documentation (3.x:Setup a Multilingual Site) to create a multilingual website

I have created a menu (Main Menu (ALL)) with menu item (Home-AL) assigned to language All and I have unpublished the module associated to the Main Menu (ALL)

The problem is that I have strange URLs:

For example:

+ for my English version (mysite.com/en), I have these URLS:
mysite.com/en/home-all.html
mysite.com/en/home.html

For the Spanish version (mysite.com/es):
mysite.com/es/home-all.html
mysite.com/es/home.html

To solve this problem I made a redirection 301, but I want to know why these URLS are generated

Thanks in advance for your help

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Strange URLS - Joomla multilingual website

Post by infograf768 » Sat Dec 30, 2017 5:13 pm

Without looking at your site as super user, can't help.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

sarah444
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Dec 27, 2015 11:42 am
Location: France
Contact:

Re: Strange URLS - Joomla multilingual website

Post by sarah444 » Sat Dec 30, 2017 9:22 pm

Merci Jean Marie.
I will send you the login.

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28202
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Strange URLS - Joomla multilingual website

Post by imanickam » Sun Dec 31, 2017 3:17 am

I also suspect that there could be some issues with the template. The reason being, whatever language is active (e.g. English), when some clicks on the logo, it takes them to the default language's (French) home page. The expected behavior is that when some clicks on the logo, they are taken to the home page of the active language.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged

sarah444
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Dec 27, 2015 11:42 am
Location: France
Contact:

Re: Strange URLS - Joomla multilingual website

Post by sarah444 » Mon Jan 01, 2018 4:11 pm

Thanks Imani and Jean Marie :)

I do not think the problem comes from the template.
I have this problem with two sites that use different templates.

PS: I use plugins SH404SEF and JCH Optimizer pro
whatever language is active (e.g. English), when some clicks on the logo, it takes them to the default language's (French) home page.
Yes that's true it's another problem, I do not know how to solve it

Thanks

sarah444
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Dec 27, 2015 11:42 am
Location: France
Contact:

Re: Strange URLS - Joomla multilingual website

Post by sarah444 » Wed Jan 03, 2018 11:25 am

Meilleurs vœux Jean-Marie
I sent you the admin information by email

Thanks

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Strange URLS - Joomla multilingual website

Post by infograf768 » Thu Jan 04, 2018 7:25 am

Please use forum private messages as it seems your mail never got here.
ucp.php?i=pm&mode=compose&u=14

The fact that you are using a 301 redirection + using SH404SEF makes it difficult to solve though.

Concerning the logo href, some code has to be added somewhere in your Gantry template.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

sarah444
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Dec 27, 2015 11:42 am
Location: France
Contact:

Re: Strange URLS - Joomla multilingual website

Post by sarah444 » Fri Jan 05, 2018 8:09 am

infograf768 wrote:Please use forum private messages as it seems your mail never got here.
ucp.php?i=pm&mode=compose&u=14

The fact that you are using a 301 redirection + using SH404SEF makes it difficult to solve though.

Concerning the logo href, some code has to be added somewhere in your Gantry template.
I can not send you a private message, I get following message:"We are sorry, but you are not authorised to use this feature. You may have just registered here and may need to participate more to be able to use this feature."

I sent you another message via the following page:memberlist.php?mode=viewprofile&u=14

P.S: I have removed all the 301 redirection

Code: Select all

Redirect 301 /accueil.html https://www.monsite
Redirect 301 /home-all.html https://www.monsite
Redirect 301 /gantry5.html https://www.monsite
Redirect 301 /it/home.html https://www.monsite/it/
Redirect 301 /it/home-all.html https://www.monsite/it/
Redirect 301 /es/inicio.html https://www.monsite/es/
Redirect 301 /es/home-all.html https://www.monsite/es/
Redirect 301 /en/home.html https://www.monsite/en/
Redirect 301 /en/home-all.html https://www.monsite/en/
Merci

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Strange URLS - Joomla multilingual website

Post by infograf768 » Fri Jan 05, 2018 4:25 pm

1. The wrong urls you describe don't come from Joomla core.
Each Home menu item has a different alias and when getting on homes via the Switcher, the urls are fine
The issue certainly comes from your use of sh404SEF

Example: This looks like it is a back-end url and not a frontend one
Screen Shot 2018-01-05 at 17.11.54.png
2. Concerning the url for the logo, this is not accessible via template editing as it is set in your version of Gantry (I guess) and I would need the full template package to find out where it lies.
But this is not a free template and anyway I can't find it on the web.
You do not have the required permissions to view the files attached to this post.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

sarah444
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Dec 27, 2015 11:42 am
Location: France
Contact:

Re: Strange URLS - Joomla multilingual website

Post by sarah444 » Fri Jan 05, 2018 10:04 pm

Thanks for your help.
1- I contacted the developer of SH404 and he is doing his best to solve the problem
2- I am ready to send you the template package, but i don't know how to send it to you

Regards

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Strange URLS - Joomla multilingual website

Post by infograf768 » Sat Jan 06, 2018 8:10 am

Solved your logo issue.
Edit each Template styles layout and add the URL Language Code to the logo URL.
Screen Shot 2018-01-06 at 09.06.28.png
Screen Shot 2018-01-06 at 09.06.40.png
You do not have the required permissions to view the files attached to this post.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Strange URLS - Joomla multilingual website

Post by infograf768 » Sat Jan 06, 2018 8:10 am

No need to send the package.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

sarah444
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Dec 27, 2015 11:42 am
Location: France
Contact:

Re: Strange URLS - Joomla multilingual website

Post by sarah444 » Sat Jan 06, 2018 10:19 am

Thanks Jean Marie for your help.
but is not better for the Italian kanguage to add the URL Language Code: it/ (with the Slash)
because for the italian language when i click on logo i get: monsite.com/it
and when i click on Home menu, i get monsite.com/it/

Regards

sarah444
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sun Dec 27, 2015 11:42 am
Location: France
Contact:

Re: Strange URLS - Joomla multilingual website

Post by sarah444 » Sat Jan 06, 2018 11:34 am

Thanks Jean Marie for your help.
but now i have now a small problem that can cause a duplicate content:
for the italian language when i click on the logo i get www.site.com/it (without slash)
and when i click on Home menu, i get www.site.com/it/ (with slash at the end)

I think it's better to edit each template styles layout and add the URL Language Code with slash: it/

Regards

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Strange URLS - Joomla multilingual website

Post by infograf768 » Sat Jan 06, 2018 5:44 pm

Just do as you like :)
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group


Locked

Return to “Language - Joomla! 3.x”