Links to phocadownload search do not open directly - SOLVED

Phoca Download - download manager
eandres1
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 13 Jul 2020, 03:15

Links to phocadownload search do not open directly - SOLVED

Post by eandres1 » 13 Jul 2020, 03:25

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;