I've upgraded 2 sites to the last 3.6.0 and both have the same errors
the url for the logo link is done with this code
$this->baseurl
the site is this and it has 2 languages
http://www.anticotravaglio-monteriggioni.com
the italian homepage is
http://www.anticotravaglio-monteriggioni.com/osteria-gelateria/it/
instead the english is
http://www.anticotravaglio-monteriggioni.com/osteria-gelateria/en/
if I push on the flags languiages all is ok instead if I push on the logo no, it goes always on the default language.
if I push on the enaglish language and then I push on the logo I will get the italian language
so I think there is a cookie problem that doesn't remeber the selected language by the visitor.
on the 3.5.1 all was ok
with $this->baseurl the url is
http://www.anticotravaglio-monteriggioni.com/osteria-gelateria/
but after the url will be redirect to the right one following the current language
the same problem appears when I set only the domain
http://www.anticotravaglio-monteriggioni.com
the final url will be always
http://www.anticotravaglio-monteriggioni.com/osteria-gelateria/it/
thanks
Hi
I try again but if I set italian language all is ok (it is the default one)
instead if I set the english one and I go to another page and then I push on the logo I return to the italian language
I'm using firefox, on linux and widows I get the same result, on the past 3.5.1 it was, 15 minutes ago
ok with chrome it is ok
so the bug is on firefox
I used Firefox for my tests
on firefox now I have cleaned the cache
I get the same problem but inverted now the default language seems in english
from italian language pushing on the logo I go to english language
it is so strange
in chrome is ok (cleaning the cache too)
with opera is ok
Tested on my android tablet and all worked as expected
http://www.saharizanzibar.net
here with firefox 47.0.1 I get the same error
only with these two sites upgraded 1 hour ago
instead this one is with 3.5.1 and it is ok with firefox
http://www.casavacanze-poderecappella.com
Please use the forum for support http://forum.joomla.org as we can't reproduce your issues.
@brianteeman
I guess this can be closed.
Hi
in the forum I can't find any type of help.
I've asked to another developer, and he says the same thing.
with firefox on a pc, the language change, if EN is set and he push on the logo or set http://www.anticotravaglio-monteriggioni.com the language change to ITA
instead on this one all is
http://www.casavacanze-poderecappella.com/holiday-rental-siena/it/
he can reproduce this issue, so I think you can do it also.
The settings on my firefox are the same of yesterday the only thing changed if the Joomla's version
I've tested from another pc usign teamviewer, I get the same error, so I reproduce it from 3 different pc, from different OS and different LAN
please please please
can you ask to another guys to test?
do you know if something is changed about the language code? like rewrite url?
probably your defaul language is EN, so from IT it should go to EN pushing on the logo
howvere you should reproduce this error from all site with multilang
trust me it is a bug
please please please ;(
Hi
Asked to another guy to check this issue from his pc
he says the same thing, with firefox the language change to the default one when he presses on the logo
they are all from Italy
See #8894 (comment)
See picture, indeed the browser is instructed to cache the redirect
It was decided that visitors and search engines should always be redirected to the same language URL when the plain home page is requested
thus the language cookie is not used
The above is an intended behaviour change , that was considered worthable because of SEO ?
As andrepereiradasilva said, see #8894 (comment)
The current language cookie will be used if you append to yout home page URL:
?aaa=45
Switch language and add a larger number to the above home page URL
and press enter,
you will see that the current language is respected
Hi
thanks for your info
so this problem came out from the 3.5.2, in fact the other sites are on joomla 3.5.1
The changes made on joomla give problems with firefox's cache
as there are as many advices as users on this, we could add a prameter in the plugin to let choose between a 303 and a 301, default to 301.
hi
I've a question:
looking that post
with 303 redirect google will store both URLs in index
domain-name.com/contact -> domain-name.com/en/contact
with 301 redirect only the last one
so the better choice is 301
and you said
301 is correct for multilang. This was changed in 3.4.
so why in the 3.6.0 with firefox there are problems and until to 3.5.1 all was ok?
is it possible to alert firefox to change its cache behavior? the other browsers work well
thanks
bye
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-07-16 07:47:01 |
Closed_By | ⇒ | maofree |
IMHO we could mantain the 301 redirect, but we could also use HTTP headers to not allow browsers to cache it.
This way we force browsers to always ask the server the location of the 301 redirect.
example: http://stackoverflow.com/questions/12192590/how-to-do-a-non-cached-301-redirect/19003320#19003320
301 is a permanent redirect and caches will retain it. You can provide HTTP headers that tell caches how long they should retain it, but telling a cache not to retain it at all is probably a contradiction since it's supposed to be permanent.
303 is a redirect to a different resource, which I don't think is appropriate here.
307 is probably the best choice since it is a temporary redirect and will likely not be cached by default. However, sending HTTP header directives would allow you to tell caches just how long they should retain it before considering it stale and it would be perfectly reasonable to tell caches not to retain it at all.
"307 Temporary Redirect" is basicly the same thing as "302 Found".
See https://tools.ietf.org/html/rfc7238#section-1
I now that this is closed, but maybe rename title of it to:
J3.6.0, currently active language (language switch) ignored, when revisiting home page URL without language code
Title |
|
Title |
|
renamed
I accidentally closed it
@andrepereiradasilva Indeed. Depends whether we need to change a POST to a GET. Either way, I don't think 301, 303 or 308 are appropriate.
so we are left with 302, which, that i know of, does not cache.
Hi andrepereiradasilva
I've tested that changes replacing languagefilter.php
it seems ok but it generates a new bug, the language flags disappear with the horizontal menu (this happens pushing some times on the menu voices and switching the current language)
(now it is present the previous file)
bye
Status | Closed | ⇒ | New |
Closed_Date | 2016-07-16 07:47:02 | ⇒ | |
Closed_By | maofree | ⇒ |
Flags disappear is probably not related to the issue or the fix of it !!
it is because of you template / extensions / configuration that you have in you in your website
this new issue happens when I use the new file, with the default one it is ok
Give me a moment to replace the last one to reproduce this error by yourself
go to the site and look at it
test it only for 5 minutes, then I return to the previous one
All modules are disappeared from the site
no
and all langs are properly configured? content, menus etc?
yes
if you want i can give you the access to the admin
without the new rows all modules are visible
// Don't cache the redirect in browser.
$this->app->setHeader('Expires', 'Wed, 17 Aug 2005 00:00:00 GMT', true);
$this->app->setHeader('Last-Modified', gmdate('D, d M Y H:i:s') . ' GMT', true);
$this->app->setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0', false);
$this->app->setHeader('Pragma', 'no-cache');
$this->app->sendHeaders();
the joomla's cache is disabled and now also jch optimize
I try to remove those new rows from that file
ok tested
the new issue is present because from that file is removed these lines
with the follow code the modules are visible
$this->app->setLanguageFilter(true);
// Detect browser feature.
$this->app->setDetectBrowser($this->params->get('detect_browser', '1') == '1');
did you before clean all browser cache and cookies?
Try to use new private window, for instance,
yes cleaning the browser's cache it seems to work well
In order to test the patch you need:
now it works, that code fix this problem
can you add this lines to this file at line 78?
$this->app->setLanguageFilter(true);
// Detect browser feature.
$this->app->setDetectBrowser($this->params->get('detect_browser', '1') == '1');
because from here now they are not present
ok understood
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-07-17 06:37:27 |
Closed_By | ⇒ | infograf768 |
Closed as we have a patch
https://issues.joomla.org/tracker/joomla-cms/11161
Set to "closed" on behalf of @infograf768 by The JTracker Application at issues.joomla.org/joomla-cms/11143
Labels |
Added:
?
|
Hi
Today I got a google's notification about hreflang tag of that site
from webmaster tool I see 6 hreflang tags but in the site there are only 3 hreflang tags (in the source code).
It reports 3 hreflang tags have errors
Is it due from this fix or is it due from another issue?
http://www.anticotravaglio-monteriggioni.com
thanks
bye
I tested your site and can't reproduce your issue.
When I am on the English (en-GB) Home page, the logo link gets to the same page.
When I am on the Italian (it-IT), I load the Italian home page OK when clicking on the logo.