Go to edit article mode > Images and Links
Add non-SEF url in Link A parameter:
/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
Labels |
Added:
No Code Attached Yet
|
@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.
Labels |
Added:
bug
|
@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 :
filter="url"
from the code in the above linkThen 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 .
Closing this issue because it is working as expected as explained above.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-03-05 07:44:23 |
Closed_By | ⇒ | joomdonation |
@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)