Make a multilingual website:
Associations and links in mod_languages to the default (home) pages of different languages should be:
The .html suffix only with deep links to non default pages:
Associations and links in mod_languages to the default pages are like:
I was wondering if the problem lies in the Language Filter plugin or in the sef_suffix logic.
Labels |
Added:
?
|
Title |
|
Additionally... without the sef_suffix the URL's are like:
...whereas these should have a trailing slash (in J!3.9 there is):
The buildFormat() function in the SiteRouter adds the format (.html) in case there is no trailing slash, so I don't think the issue is in that part. I can't find why there is no trailing slash in the default/home pages yet.
Confirmed.
Actually the home links are totally broken compard to J3 on a multilanguage J4 website, plus the language switcher module throws a 404 page when changing the language.
So bad to find this issue at a RC stage, this makes it impossible to use J4 on a multilanguage website or update from a J3 multilanguage website, a lot of penalties about SEO would occur because of duplicated home page links.
Additionally there are other issues such as the logo linking to the website home page without /en,/es suffix, menwhile the menu link to en.html, es.html
This issue should be marked as release blocker.
Actually the home links are totally broken compard to J3 on a multilanguage J4 website, plus the language switcher module throws a 404 page when changing the language.
This I can't reproduce at all.
I can fully reproduce the issue in the original report here - so it's a release blocker. But yeah there's no 404's. Just the SEF URLs not being as expected.
cc @Hackwar
Labels |
Added:
?
|
Would be good to know when it was broken, with rc1 or before.
@richard67 this has always been broken, since the ALPHA stages of J4.
thank you for reporting it back then
I am not sure if the "en.html", "es.html" and so on was a deliberate decision or not ... I've tried to find old issues and PR where that was discussed, but I was not successful yet.
If you ask me: Personally I'd prefer it to work like in J3 regarding the home pages, which is (as far as I understand) what @elpescador-nl wants, too.
What we have now in J4 is at least not consistent (if not broken): The language switcher links to e.g. "es.html" and "nl.html" for the other languages if current language is English, but if you click on the logo, the language filter brings you e.g. to "en/" instead of "en.html", and there the mess begins.
its clearly a bug
I believe the problem is in the test here
Although in reality the real problem is that the url for the home page in another language is
example.com/fr
when the test is expecting it to be
example.com/fr/
Note the trailing slash
Although in reality the real problem is that the url for the home page in another language is
example.com/frwhen the test is expecting it to be
example.com/fr/Note the trailing slash
As I observed in an earlier post I think the real problem indeed is the absence of the trailing slash in home/default page url's. The decision of whether or not to add the .html suffix is just based on the absence/presence of the trailing slash.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-06-18 14:09:26 |
Closed_By | ⇒ | richard67 | |
Labels |
Added:
?
Removed: ? |
Labels |
Removed:
?
|
Confirmed for the home pages with the following config