No Code Attached Yet
avatar seniooriz
seniooriz
15 Mar 2025

Steps to reproduce the issue

-Create a menu item with the alias about-joomla and ID 153.
-Ensure that SEF URLs are enabled in the Joomla Global Configuration.
-Verify that the SEF URL works correctly: https://www.joomla.org/about-joomla.html
-Now, try accessing the non-SEF URL directly: https://www.joomla.org/index.php?Itemid=153
-Observe that this URL does not get converted into its SEF equivalent.
-Enable the "System - SEF" plugin.
-Check the tag for https://www.joomla.org/index.php?Itemid=153.

Expected result

-When accessing https://www.joomla.org/index.php?Itemid=153, Joomla should automatically redirect to the SEF URL https://www.joomla.org/about-joomla.html.

-The canonical tag should point to the SEF URL, not the non-SEF URL. (very important)

Actual result

-The non-SEF URL does not get rewritten to its SEF equivalent.
-The canonical tag incorrectly points to https://www.joomla.org/index.php?Itemid=153 instead of https://www.joomla.org/about-joomla.html.

System information (as much as possible)

Joomla version: 5.2.5
PHP version: 8.3
SEF URLs: Enabled
"System - SEF" plugin: Enabled

Additional comments

avatar seniooriz seniooriz - open - 15 Mar 2025
avatar joomla-cms-bot joomla-cms-bot - change - 15 Mar 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Mar 2025
avatar brianteeman
brianteeman - comment - 15 Mar 2025

There is no such thing in Joomla as a canonical tag for a url

avatar seniooriz
seniooriz - comment - 15 Mar 2025

There is no such thing in Joomla as a canonical tag for a url

This was a scenario. The same scenario on my live website:

Image

Add a Comment

Login with GitHub to post a comment