J4 Issue ?
avatar infograf768
infograf768
26 Mar 2018

Steps to reproduce the issue

Create a multilingual site with 4.0 (2 languages are enough)
The easiest way we have now is alas still a bit complex.
Make sure you installed one of the languages we can install: French, German, Persian
Make sure both Content Languages exist and are published.
Make sure the Language Filter plugin is enabled.
Create a language switcher module and publish it in the right position
Then, when admin language is en-GB, go to Control Panel and Install Blog sample data (items with be tagged to en-GB).
Go to Installed languages and switch admin to the other language (French for example)
Back to Control Panel and Install again Blog Sample Data. This time it will be tagged to French.

Then set the Blog(en-GB) menu Item to Home.
Set the Blog (fr-FR) menu item to Home.
Unpublish the main menu module (the one which contains the default Home set to ALL languages).

Set SEF and URL rewriting ON in Global Config (use htaccess )

Results

Go to Frontend and click on any menu (except the home page)

The menu About (en-GB) gives this url
http://localhost:8888/installmulti/joomla40/about/en/
instead of
http://localhost:8888/installmulti/joomla40/en/about/

and therefore a 404 as the URL Language Prefix (en) is not at the correct place.


Now click on one article in the Older Posts (en-GB) module:
For example Welcome to your blog (en-GB)
You get this url, whether in modern or legacy routing

http://localhost:8888/installmulti/joomla40/en/?view=article&id=3:welcome-to-your-blog-en-gb

Not very nice...

Did not test other stuff.

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
5.00

avatar infograf768 infograf768 - open - 26 Mar 2018
avatar joomla-cms-bot joomla-cms-bot - change - 26 Mar 2018
Labels Added: J4 Issue ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Mar 2018
avatar infograf768 infograf768 - change - 26 Mar 2018
The description was changed
avatar infograf768 infograf768 - edited - 26 Mar 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Mar 2018
Category Multilanguage
avatar infograf768 infograf768 - change - 27 Mar 2018
The description was changed
avatar infograf768 infograf768 - edited - 27 Mar 2018
avatar infograf768
infograf768 - comment - 5 Apr 2018

Hint: the issue is present when using SEF.

avatar infograf768 infograf768 - change - 5 Apr 2018
Title
[4.0] Multilingual routing: menu items URL broken in frontend (except home pages) + ugly urls for articles
[4.0] Multilingual routing, SEF on: menu items URL broken in frontend (except home pages) + ugly urls for articles
avatar infograf768 infograf768 - edited - 5 Apr 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Apr 2018
Status New Discussion
avatar Yddap17
Yddap17 - comment - 26 Apr 2018

Have same issue.
I have Search Engine Friendly URLs ON
Doesnt't matter if URL Rewrite is ON in my case

Have 5 Menus (2 Language English, 2 Language German, 1 Menu for ALL Language, which has no module position)

When I click in one of the seperated published language menus, the routing adds another language code at the end of the url.
Something like /en/about/en
That fires an 404 error.
When I remove the last en manually it works fine.

Switching the language with the switching Module (where I had difficulties installing (Get error: Save failed with the following error: Field 'content' doesn't have a default value), the URLs get ugly.
Like de/?view=article&id=2
There the second language code is't added. And it works without doing anything manually. But the URL is not nice...


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19997.
avatar eltonpang
eltonpang - comment - 26 Apr 2018

This issue are also present in existing 3.8.7, I am about the submit a new issue but see this being reported for 4.0. The issue are quite similar as describe by Jean-Marie Simonet.
If you need to see sample, head to http://templatesreview.cloudaccess.host
click on any of the 2 articles in the homepage, you will always see ?view=article&id=4: follow by articele title then end with &catid=2
Note: the ID changes depending on the article and category of the article display

SEO Settings:
SEF URL Yes
Use URL rewriting Yes
Unicode Aliases Yes

Article Options >> Integration
URL routing Modern
Remove IDs from URL Yes


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19997.

avatar mbabker
mbabker - comment - 26 Apr 2018

In your case it looks like there are no menu items configured except for the featured menu item (the home page). The router cannot use the featured item view in com_content to create SEF URLs as featured is a content state and not part of the content hierarchy.

avatar eltonpang
eltonpang - comment - 26 Apr 2018

I had raised a ticket for 3.8.7 at https://issues.joomla.org/tracker/joomla-cms/20242 as it need to be fix or render multilanguage site not URL friendly


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19997.

avatar Hackwar
Hackwar - comment - 14 May 2018

Looks like languagefilter.php line 146 needs to be PROCESS_BEFORE instead of PROCESS_DURING. That should fix it.

avatar infograf768
infograf768 - comment - 15 May 2018

I'm afraid not

avatar infograf768
infograf768 - comment - 15 May 2018

I meant better, but not fully
I get for example
http://localhost:8888/installmulti/joomla40/fr.html
instead of
http://localhost:8888/installmulti/joomla40/fr/
for home page
also
http://localhost:8888/installmulti/joomla40/?format=html
when url language code is set to not show for the home page of the default site language

avatar infograf768
infograf768 - comment - 15 Jul 2018

I am closing this as the errors have changed since this issue was posted.

avatar joomla-cms-bot joomla-cms-bot - change - 2 Apr 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-04-02 09:36:20
Closed_By joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 2 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Apr 2019
Closed_By joomla-cms-bot franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 2 Apr 2019

Add a Comment

Login with GitHub to post a comment