No Code Attached Yet bug
avatar Sulpher
Sulpher
21 Feb 2023

Go to edit article mode > Images and Links
Add non-SEF url in Link A parameter:
Снимок экрана 2023-02-21 в 22 41 46

/index.php?option=com_content&view=article&id=1&catid=2

And this non-SEF url still remains on the front-end.
I expect to get SEF URL since SEF mode is enabled.
And I use non-SEF URL to avoid 404 error if article's alias will be changed.

Joomla 4.2.8

avatar Sulpher Sulpher - open - 21 Feb 2023
avatar joomla-cms-bot joomla-cms-bot - change - 21 Feb 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Feb 2023
avatar Sulpher Sulpher - change - 21 Feb 2023
The description was changed
avatar Sulpher Sulpher - edited - 21 Feb 2023
avatar joomdonation
joomdonation - comment - 22 Feb 2023

@Sulpher Our System - SEF plugin can only convert the URL to SEF URL if the link starts with index.php. In this case, the link starts with /index.php (note the slash at the beginning) and it is not being converted (I don't know why we decided to add the / to the link like that)

avatar Sulpher
Sulpher - comment - 22 Feb 2023

@Sulpher Our System - SEF plugin can only convert the URL to SEF URL if the link starts with index.php. In this case, the link starts with /index.php (note the slash at the beginning) and it is not being converted (I don't know why we decided to add the / to the link like that)

Yes, but the slash is being added by Joomla after saving since I always paste the non-SEF URL as is which starts from index.php.
So, then a patch is needed which prevents of adding slash before the URL.

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023
avatar joomdonation
joomdonation - comment - 23 Feb 2023

@Sulpher Afraid it is designed to work like that. We use url filter to make sure the entered value is really accessible URL.

You can test it by :

  1. Remove filter="url" from the code in the above link
  2. Enter the URL in the format you mentioned
  3. Disable System - SEF plugin

Then try to access to article and click on the link. You will get a broken link. For example, in my test, the link becomes http://localhost/joomla42/index.php/content-categories/sport/index.php?option=com_article&view=article&id=23 .

avatar joomdonation joomdonation - close - 5 Mar 2023
avatar joomdonation
joomdonation - comment - 5 Mar 2023

Closing this issue because it is working as expected as explained above.

avatar joomdonation joomdonation - change - 5 Mar 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-03-05 07:44:23
Closed_By joomdonation

Add a Comment

Login with GitHub to post a comment