I have a smart search form with the results page set to show the url and the page title.
The displayed url should be the actual url of the link.
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
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.
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!
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
I have tested this with a site in the root and in a subdirectory
in both cases the url displayed was correct
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-01-10 16:07:19 |
Closed_By | ⇒ | ceford |
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.
on the production site where it is not working is that site also in a subdirectory?