Install a basic Joomla! 3.6.5.
Create and publish an article and attach tags to it ("lorem", "ipsum", etc).
Create and publish a "Tags - Popular" module.
Create and publish a menu item with type "Tags » Compact list of tagged items". Select any tag in the menu item's parameters.
On the frontend click on that menu item. (".../index.php/tag-lorem")
In the "Tags - Popular" module the links should be in the basic form like
".../index.php/component/tags/tag/3-ipsum".
In the "Tags - Popular" module the links change to a form if every tag were attached to that menu item.
".../index.php/tag-lorem/3-ipsum".
I reproduced the bug with a basic Joomla! 3.6.5 with default settings and with no additional extension.
I realised this bug when I wanted to use a unique template for a certain tag's "blog view". I realised that after clicking on the menu item every tags' link in the module changes to a form as they were submenus of that menu item, or if the menu item was a kind of blog view of all tags.
(The only solution I found is that to create a hidden menu item listing all tagged items. This way all tags get that menu item's itemid except the one I wanted to attach the unique template.)
I made some investigations and I think that it's not the module that generates the bug. Maybe it's somewhere in the component, in the router that generates the wrong URLs.
The bug shows up in the module: the tags' links look like
".../index.php/tag-lorem/3-ipsum"
instead of
".../index.php/component/tags/tag/3-ipsum".
It only happens if we attach a menu item to a tag and we navigate to that menu item (".../index.php/tag-lorem").
(I dont know Joomla so deeply but I think that the links get a wrong ItemID if no menu item attached to them.)
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-19 19:35:43 |
Closed_By | ⇒ | bodlevente |
No.
I also have taken screenshots.
The first made on the Home page. The upper arrow shows that we are now on the Home page (active menu item --> URL in the browser), the arrow below shows what URL the module contains for the second tag at the moment:
The second picture shows the incorrect state of the URLs in the "Tags - Popular" module:
The upper arrow shows that we are now on a menu item with type Tags » Compact list of tagged items (active menu item --> URL in the browser). The only selected tag here at the menu parameters is "lorem". "Ipsum" or any other tag is not included. The other arrow points to the error itself: what kind URL the module contains for the second tag at the moment.
That URL shouldn't change from state "A" to state "B", because it's not the tag "lorem" (that's connected to a menu item) but the tag "ipsum" (that doesn"t have such a connection to any menu item).
Status | Closed | ⇒ | New |
Closed_Date | 2017-04-19 19:35:43 | ⇒ | |
Closed_By | bodlevente | ⇒ |
@bodlevente Thanks for your Patience, got it.
Set Status in Tracker on "Confirmed".
Status | New | ⇒ | Confirmed |
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-22 19:35:03 |
Closed_By | ⇒ | zero-24 |
Please test there if that fixes your issue @bodlevente Thanks!
I just encountered a similar problem on Joomla 3.7.2. I am not using the popular tags module, however I have several sets of hierarchised tags, one of which is not attached to a menu. I noticed today that the urls for this unattached set of tags are picking up the names of another set of tags that are attached to a menu item.
I do not know exactly when this problem started, but I have the impression that it must have been introduced during one of the Joomla updates, as I don't remember seeing this problem when I developed the website in question at the end of 2016. However, I cannot be absolutely certain of this.
In order to circumvent this problem, it appears that I have to create menu items for the tags which don't currently have them. These menu items have to be within the same menu as the other tags: it doesn't seem to work if I create a separate hidden menu.
In order to apply the fix referred to here, do I have to apply the changes to the source code referred to here manually? Sorry, I am not very familiar with these "pull requests".
I would be happy to provide more details of my problem if necessary.
Thank you.
Alan
@absillitoe can you please open a new Issue to find help for creating an PR? Writing on closed Issues wouldn't be read by many People.
Ok. Thank you, Franz. I'll do it over the weekend.
I didn't get your Issue: you wrote "Select any tag in the menu item's parameters" and "In the "Tags - Popular" module the links change to a form if every tag were attached to that menu item."
So i don't understand what's the Bug.