Page 1 of 1

Links to phocadownload search do not open directly - SOLVED

Posted: 13 Jul 2020, 03:25
by eandres1
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;

Re: Links to phocadownload search do not open directly - SOLVED

Posted: 28 Aug 2020, 15:50
by Jan
Ok.