J3 Issue ?
avatar dBarboni
dBarboni
5 Oct 2017

Steps to reproduce the issue

  1. Create an article. Give it a Tag.
  2. Create a menu item of type Tags->Tagged Items. Select the tag you added in step 1.
  3. Navigate to your new menu item and add ?format=feed&type=rss to the end of the URL to view the RSS feed.
  4. Look at the value of the channel->link element. Note that "/Array" has been added to the URL. The channel link results in a 404 if accessed.

Expected result

The link should point back to your menu item.

Actual result

The link points back to the menu item but with "/Array" appended to the URL.

System information (as much as possible)

Joomla 3.8.1
PHP 5.6.31

Additional comments

Occurs on a clean install of 3.8.1.

avatar dBarboni dBarboni - open - 5 Oct 2017
avatar joomla-cms-bot joomla-cms-bot - change - 5 Oct 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Oct 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Oct 2017
Category com_newsfeeds com_tags
avatar brianteeman
brianteeman - comment - 9 Oct 2017

I can confirm this

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Oct 2017
Status New Confirmed
avatar EmilMassey
EmilMassey - comment - 27 Oct 2017

Tagged items' links are incorrect too. They point to 404 page. For example when site's default view is the category, the link looks like: http://example.com/?id=218:some-alias.

The problem is in the way we create link to an item in tag model. For com_content this won't work, because the router (legacy, I didn't check the new advanced router) requires catid parameter and we don't know article's category ID.

$explodedTypeAlias = explode('.', $item->type_alias);
$item->link = 'index.php?option=' . $explodedTypeAlias[0] . '&view=' . $explodedTypeAlias[1] . '&id='
. $item->content_item_id . ':' . $item->core_alias;

As the Tags Component is supposed to work with any component, it is not possible to create link the same way for every item type. I think we should somehow allow developers to implement their own method to create items' links.

At the moment, tag feed is broken and useless. :( I hope we'll fix this ASAP, because this functionality is quite important on website I develop.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Oct 2017

@EmilMassey can you provide a Pull Request so we can Test and fix ASAP?

avatar EmilMassey
EmilMassey - comment - 27 Oct 2017

@franz-wohlkoenig Unfortunately, right now I don't even know where to begin. To be honest this is the first time I saw Tag Component's code and I need some time to get to know it before I change anything in it.

avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Nov 2017
Status Confirmed Discussion
avatar alschaeffer
alschaeffer - comment - 14 Mar 2018

I have the same problem. I don't understand, why you have to edit the category in the link.

Instead of
http://example.com/?id=218:some-alias
this link would work for me
http://example.com/218-some-alias

avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar SharkyKZ
SharkyKZ - comment - 12 Jun 2018

@EmilMassey @alschaeffer for your issue see #20723.

avatar joomla-cms-bot joomla-cms-bot - change - 12 Jun 2018
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 12 Jun 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 12 Jun 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-06-12 09:23:43
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 12 Jun 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Jun 2018

closed as having Pull Request #20723

avatar SharkyKZ
SharkyKZ - comment - 12 Jun 2018

@franz-wohlkoenig reopen this please. #20723 only solves the issue described in the comments.

avatar joomla-cms-bot joomla-cms-bot - change - 12 Jun 2018
Status Closed New
Closed_Date 2018-06-12 09:23:43
Closed_By joomla-cms-bot
avatar franz-wohlkoenig franz-wohlkoenig - change - 12 Jun 2018
Closed_Date 0000-00-00 00:00:00
avatar joomla-cms-bot joomla-cms-bot - reopen - 12 Jun 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 12 Jun 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 12 Jun 2018
Status New Discussion
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Jun 2018

Reopened as stated above.

avatar wilsonge wilsonge - change - 18 Aug 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-08-18 14:20:00
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 18 Aug 2018

Closed as we have a PR with #21690

avatar wilsonge wilsonge - close - 18 Aug 2018

Add a Comment

Login with GitHub to post a comment