• Home
  • Get help
  • Ask a question
Last post 10 hours 33 min ago
Posts last week 141
Average response time last week 4 hours 42 min
All time posts 67805
All time tickets 10478
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#7408 – URL to default homepage with language code

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 25 September 2020 07:10 UTC
gabrieleb

Hi,

on this site https://www.xxxx.com/ which is only in Italian for now, there is the first link of the menu (L'Hotel) which is set as the homepage in Italian in the menu. In the Language Filter plugin I set the "remove the prefix of the default language" (Italian) to yes, so consequently the homepage url should not be https://www.xxxx.com/it/ as is the link of the menu "L'Hotel" but only https://www.xxxx.com/. This is a problem because when I generate the sitemap it reports me https://www.xxxx.com/it/ which makes a 301 redirect to https://www.xxxx.com/ and in the sitemap there shouldn't be redirects 301.

How can I solve? It seems that sh404sef ignores the Language Filter plugin for Joomla! .

Friday, 25 September 2020 07:53 UTC
wb_weeblr

Hi

This is a problem because when I generate the sitemap it reports me https://www.xxxx.com/it/ which makes a 301 redirect to https://www.xxxx.com/ and in the sitemap there shouldn't be redirects 301.

This is required for sh404SEF to overcome the language filter behavior when switching back from another language to Italian. Without it, Joomla would just stay on the same language when trying to switch xx back to Italian.

Note that even without sh404SEF, you would have the same problem in the language switcher: the language switcher also requires you to have /it/ on the default language to be able to switch back and so it's kind of unavoidable.

How can I solve? It seems that sh404sef ignores the Language Filter plugin for Joomla! .

Of course we don't, we spent a great deal of time trying to workaround some of the behaviors of the Language Filter plugin, which has always made our life a bit more difficult! 

One thing you can do is to change your menu item type, use a URL type and hardcode the home link without /it/. Then you can check if the sitemap still pick up the /it/ link from the language switcher. Of course, you'll only see that when you enable the language switcher with more languages.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Monday, 26 October 2020 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.