Home button redirects to default language

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Feb 06, 2015 3:21 pm
Reply with quote
Report this post
Dear Gavick team,

i'm setting up a bilingual (italian-bulgarian) website www.bulgariaoggi.com/new

Going through the menus of the Bulgarian version i realized the home button redirects to the default language (italian). Initially i thought it's because of the SEF404 but after i changed the default template (following their advice), the problem disappeared.

Can you have a look please?

Thanks!
User avatar
Senior Boarder

teitbite
Sat Feb 07, 2015 11:44 am
Reply with quote
Report this post
Hi

Try edit /layout/blocks/logo.php and replace every ocurence of code:

Code: Select all
<?php echo JURI::root(); ?>


with just:

Code: Select all
/
User avatar
Moderator

GK User
Sat Feb 07, 2015 7:11 pm
Reply with quote
Report this post
Hi,

i saw that code in 3 places and changed it but no luck. Just now if you press home it still takes you to the default language home page but if you press the logo it takes you to the root website default language home page (bulgariaoggi.com instead of bulgariaoggi.com/new)

Do you want me to send you log in details?
User avatar
Senior Boarder

teitbite
Mon Feb 09, 2015 5:23 pm
Reply with quote
Report this post
Hi

Ok, please send an access to joomla panel and ftp.
User avatar
Moderator

teitbite
Wed Feb 11, 2015 4:19 pm
Reply with quote
Report this post
Hi

I've fixed the problem by recodding /layout/blocks/.logo.php file, but I could not find what is causing this problem. There are other issues with multi language in this site and a diagnose module is not showing, so I cannot tell what exactly. My fix will have to do for now.
User avatar
Moderator

GK User
Sat Feb 14, 2015 9:20 am
Reply with quote
Report this post
Thanks a lot!
User avatar
Senior Boarder

teitbite
Fri Feb 27, 2015 10:12 am
Reply with quote
Report this post
Hi

One of the users has pointed out the situation when language is not selected from the beginning. Here is a adjusted file version for this situation:
User avatar
Moderator

GK User
Sun Mar 08, 2015 9:02 am
Reply with quote
Report this post
Hi Teitbite,

i just updated my joomla to 3.4 and i'm afraid your script collapsed. When i try to go back to the home page, both via logo or Home menu button, i get an error 1064 and link looks like this http://bulgariaoggi.com/new/it/it-IT The double language code appears in both site versions - Bulgarian and Italian.

Do you have an idea how to sort that?
User avatar
Senior Boarder

teitbite
Mon Mar 09, 2015 8:45 pm
Reply with quote
Report this post
Hi

Try update template to latest version first without my script. For 1064 error You need to overwrite in NSP settings table suffix with the language tag products are in.
User avatar
Moderator

GK User
Tue Mar 10, 2015 3:35 pm
Reply with quote
Report this post
The template is updated to the latest version, but the NSP seems to only have latest version for Joomla 3.3. Not that i know how to overwrite the NSP settings table suffix :)
User avatar
Senior Boarder

teitbite
Wed Mar 11, 2015 10:02 am
Reply with quote
Report this post
Hi

Please simply install the latest NSP You can find over the one You have, no matter if You do this with ftp or joomla installator. Than read this: https://www.gavick.com/documentation/jo ... quickstart to see what are the dependencies in vm3 and joomla languages. After learning which language suffix Your website uses (best to check database) just add this suffix to field I marked on the screenshot and set this language as default.
User avatar
Moderator

GK User
Tue Aug 16, 2016 10:07 am
Reply with quote
Report this post
Hi there,

it's me gain. I just updated Joomla to 3.6 and the problem is back. I updated the NSP but i had some problem updating the template itself. Using the default logo file from layout/blocks/logo.php helped resolving the double language code in the link, it's just that now we are back to the initial problem - while browsing the Bulgarian version the Home page takes you to the default (Italian) language home page.

Is there a sustainable solution for this problem or shall i bother you every time i make an update? :)

Thanks!
User avatar
Senior Boarder

teitbite
Sun Aug 21, 2016 3:38 pm
Reply with quote
Report this post
Hi

Which problem You have in mind. I'm reading this thread and oall I can see we have discussed is the problem in logo.php file, which You can solve by using the same file I've provided.
User avatar
Moderator


cron