No Code Attached Yet
avatar ceford
ceford
10 Jan 2025

Steps to reproduce the issue

I have a smart search form with the results page set to show the url and the page title.

Expected result

The displayed url should be the actual url of the link.

Actual result

The url display is corrupt. One example looks like this:

http://localhostjdocmanual?article=user/command-line-interface/using-the-cli

But the link looks like this (and works):

http://localhost/jdm4/jdocmanual?article=user/command-line-interface/using-the-cli&highlight=WyJ0ZXJtaW5hdGVkIiwidGVybWluYWwiLCJ0ZXJtaW5hdGUiLCJ0ZXJtaW5hdGluZyJd

System information (as much as possible)

Problem is present on test and production sites. The slash is missing after the host name and the subfolder name is missing in the displayed url but not in the link url.

Additional comments

I think the code to look at is components/com_finder/tmpl/search/default_result.php line 65 and following.

The easy work-around is not to show the url!

avatar ceford ceford - open - 10 Jan 2025
avatar ceford ceford - change - 10 Jan 2025
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 10 Jan 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Jan 2025
avatar brianteeman
brianteeman - comment - 10 Jan 2025

on the production site where it is not working is that site also in a subdirectory?

avatar brianteeman
brianteeman - comment - 10 Jan 2025

I have tested this with a site in the root and in a subdirectory

in both cases the url displayed was correct

avatar ceford ceford - change - 10 Jan 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-01-10 16:07:19
Closed_By ceford
avatar ceford ceford - close - 10 Jan 2025
avatar ceford
ceford - comment - 10 Jan 2025

This problem came up in a custom component and it was entirely my fault. I did not notice a coding error because the link worked and I mostly hid the url. Sorry to have troubled you.

Add a Comment

Login with GitHub to post a comment