Links to phocadownload search do not open directly - SOLVED

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

Links to phocadownload search do not open directly - SOLVED

Post 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;

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Ok.
If you find Phoca extensions useful, please support the project
Post Reply