No Code Attached Yet Information Required bug
avatar AndySDH
AndySDH
23 Oct 2023

Steps to reproduce the issue

Nonsef URLs like this:
index.php?option=com_tags&Itemid=657&id=4-apple&view=tag
are turned into a correct SEF like this:
[menu-item-name]/[tag-name]
eg:
tags/apple
So this converts correctly.

However, nonsef URLs like this:
index.php?option=com_tags&Itemid=657&id[0]=4&view=tag
fail to generate a correct SEF, converting to ths:
menu-item-name/[TAG-ID]
eg:
tags/4
So in this case it doesn't use the name but it uses the ID of the tag.

To reproduce the issue, link to a URL formed like the above ones, for an existing com_tags tag.

Expected result

index.php?option=com_tags&Itemid=657&id[0]=4&view=tag

should form an URL like:
tags/apple

Actual result

But instead it forms an URL like:
tags/4

System information (as much as possible)

Tested on Joomla 4.3.4

avatar AndySDH AndySDH - open - 23 Oct 2023
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Oct 2023
avatar richard67
richard67 - comment - 23 Oct 2023

@Hackwar Could you have a look on this issue? To me it seems expected behaviour, but I'm not sure.

avatar AndySDH AndySDH - change - 23 Oct 2023
The description was changed
avatar AndySDH AndySDH - edited - 23 Oct 2023
avatar Hackwar
Hackwar - comment - 26 Oct 2023

will do

avatar Quy
Quy - comment - 8 Feb 2024

Duplicate #39708?

avatar Quy Quy - change - 8 Feb 2024
Labels Added: Information Required
avatar Quy Quy - labeled - 8 Feb 2024
avatar Hackwar Hackwar - change - 26 Mar 2024
Labels Added: bug
avatar Hackwar Hackwar - labeled - 26 Mar 2024
avatar Hackwar
Hackwar - comment - 7 Aug 2024

This is not expected behavior and should be fixed. The problem is in the router of com_tags. The router does not load the right alias when the alias isn't given. This has to be added at the end of the build method. Would anybody be willing to take this up? It is a rather straightforward lookup in the database.

Add a Comment

Login with GitHub to post a comment