When I search for a file, the result link takes me to the category or the file information, but the user needs the result link to open directly, I found this solution and I bring it here for whoever needs it.
Search this line in plugin phocadownload.php:
$listFiles[$key]->href = JRoute::_(PhocaDownloadRoute::getCategoryRoute($value->catid, $value->catalias))
And change to:
$listFiles[$key]->href = JRoute::_(PhocaDownloadRoute::getCategoryRoute($value->catid, $value->catalias)).'?download='.$value->slug;
Links to phocadownload search do not open directly - SOLVED
- eandres1
- Phoca Newbie
- Posts: 5
- Joined: 13 Jul 2020, 03:15
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Links to phocadownload search do not open directly - SOLVED
Ok.
If you find Phoca extensions useful, please support the project