No Code Attached Yet
avatar EricdeWaal
EricdeWaal
15 Feb 2022

Steps to reproduce the issue

create a bilingual site, like EN and NL
create a menu item for each language, associate them
set the Language Filter to "Remove URL Language Code" No
switching the language in the browser shows urls: domain/nl/menu-title and domain/en/menu-title
no problem so far

set the Language Filter to "Remove URL Language Code" Yes

Expected result

switching the language in the browser shows urls: domain/menu-title and domain/en/menu-title

Actual result

switching the language from the Dutch domain/menu-title to English works: domain/en/menu-title,
switching back to Dutch creates url domain/nl/menu-title, not domain/menu-title
This causes a 404 error

System information (as much as possible)

Joomla! version 4.0.6
PHP Version 7.4.27
Web Server Apache/2

Additional comments

In Joomla! 3 this used to work

avatar EricdeWaal EricdeWaal - open - 15 Feb 2022
avatar EricdeWaal EricdeWaal - change - 15 Feb 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 15 Feb 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Feb 2022
avatar infograf768
infograf768 - comment - 15 Feb 2022

Same as #35541 ?

avatar EricdeWaal
EricdeWaal - comment - 15 Feb 2022

@infograf768 yes it looks like it! Thank for the info.

The.htaccess rewrite trick works for me:
RewriteCond %{REQUEST_URI} !^/xx/$
RewriteRule ^xx/(.*)$ /$1 [R=301,L]

With the mentioned exeption for the site root.

avatar brianteeman
brianteeman - comment - 15 Apr 2022

This should be closeed as it was fully explained in the other issue #35541

avatar EricdeWaal EricdeWaal - change - 15 Apr 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-04-15 09:48:46
Closed_By EricdeWaal
avatar EricdeWaal EricdeWaal - close - 15 Apr 2022
avatar EricdeWaal
EricdeWaal - comment - 15 Apr 2022

Yes, I will close it

Add a Comment

Login with GitHub to post a comment