1. alfoto2
  2. Commercial Templates
  3. Friday, 09 May 2014
  4.  Subscribe via email
I'm using cashmere for a 2 languages site and have set to select language with browser settings. If I input the website like http://www.mysite.com it works file and browser sets the language but if I select http://www.mysite.com/index.php it always selects english which is the default language.

Joomla is 3.3, just updated.

The main problem is that the logo redirects to index.php and always loads the english site.

Any help will be appreciated.

Thanks.
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

In your templates header.php (../templates/j51_cashmere/php/layouts/header.php - LINE66) locate the following...


<a href="/index.php" title="<?php echo $siteName; ?>


And replace the index.php with your site URL (eg http://www.mysite.com/).

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
This change creates an invalid link like:

http://www.mysite.com/webtest/www.mysite.com
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
May I suggest re sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine these issues further. For our reference please paste a link to this post in your email.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Have you been able to take a look with the data sent by email?

Thanks.
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Your home URL has been added to your header.php and it appears to be now working correctly.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks, it opens now the main page but I still have the languages problem:

If I open the site from a spanish browser will all cookies deleted it opens in spanish as it should because I have set "Browser settings" at the language preferences in Joomla, but once I click at the logo it reopens in english and not spanish.

It doesn't matter if I browser other pages, each time I click at the logo the english site opens.
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
Btw, the same is true if I enter the full URL on a clean browser (spanish browser):

- If I go to http://www.mysite.com it starts in spanish (correct)
- If I go to http://www.mysite.com/web/index.php it starts in english

:(

More info:
If I type once http://www.mysite.com on a clean browser it starts in spanish
the second time it starts in english

It seems like the cookies language is always set to english, may be it's a Joomla bug
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Ok, I have solved the logo problem by editing header.php to:

<?php $lang = JFactory::getLanguage(); $lang_code = substr($lang->getTag(),0,2); ?>
<div class="logo"> <span> <a href="http://www.mysite.com/web/index.php?lang=<;?php echo $lang_code; ?>" title="<?php echo $siteName; ?>">

This way I'm forcing the logo to redirect to the correct language site, but still not solved the issue for entering twice http://www.mysite.url at the navigator, it always goes to the english site.
  1. more than a month ago
  2. Commercial Templates
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Alfoto

Try adding the 'http://' at the beginning of your URL which will stop Joomla from apply SEF to it...


<div class="logo"> <span> <a href="http://www.mysite.com/web/index.php?lang=<?php echo $lang_code; ?>" title="<?php echo $siteName; ?>">


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 9
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok