J4 Issue ?
avatar infograf768
infograf768
20 Jul 2018

This report is limited to com_contacts but it could also touch some other components in core.

Steps to reproduce the issue

Use latest 4.0-dev
Tested on a multilingual site.
Create a contact category tagged to each language.
Create a contact in each of these categories, tagged to the same language.

I have as menu item type "List Contacts in a category"
/index.php/en/contact-category-en-gb

The link on that page displaying the contact is
/index.php/en/contact-category-en-gb/mycontact // see below direct menu item. this url is a double with the one below (it should be /index.php/en/my-contact). Alias of that single contact is mycontact

// I do also have a direct menu item to that contact (alias of the menu item is my_contact)
When I use this last one (/index.php/en/my-contact), the category link above the contact gives
/index.php/en/my-contact?view=category&id=14 instead of the existing /index.php/en/contact-category-en-gb

avatar infograf768 infograf768 - open - 20 Jul 2018
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jul 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Jul 2018
avatar infograf768 infograf768 - change - 20 Jul 2018
Labels Added: J4 Issue
avatar infograf768 infograf768 - labeled - 20 Jul 2018
avatar infograf768 infograf768 - change - 20 Jul 2018
The description was changed
avatar infograf768 infograf768 - edited - 20 Jul 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Jul 2018
Category Router / SEF
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Jul 2018
Status New Discussion
avatar wilsonge
wilsonge - comment - 20 Jul 2018

@Hackwar can you look into this please?

avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Jul 2018
Status Discussion Information Required
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Aug 2018

@Hackwar is this something you will look at?


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

avatar Hackwar
Hackwar - comment - 17 Aug 2018

Add the $language parameter to the call of getCategoryRoute and this should work. That language parameter is not really optional, but since someone thought "meh, make it optional by giving it a default value", we are running into these issues everywhere.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Aug 2018

thanks @Hackwar for Comment.

avatar infograf768
infograf768 - comment - 18 Aug 2018

Thanks for the hint.
See #21679
(getContactRoute is also concerned)

Closing as we have a patch

avatar infograf768 infograf768 - close - 18 Aug 2018
avatar infograf768 infograf768 - change - 18 Aug 2018
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2018-08-18 06:57:14
Closed_By infograf768

Add a Comment

Login with GitHub to post a comment