#500 – K2 attachment download links are wrong

Status: Closed - Category: Route 66
Hi,

To give you an example. This is the raw URL:

https://my-domain.com/index.php?option=com_k2&view=item&task=download&id=1276_55939f05bf18247a9c893bd1689ee69a&Itemid=306

Route 66 generates the URL to the item ID 1276.... instead of targeting the download 1276.
This is the workaround, plugins/system/route66/lib/router.php, line 320

public function preBuildExtension($router, $uri)
{
// Get application
$application = JFactory::getApplication();

// Get query
$query = $uri->getQuery(true);

// Reset route
$this->route = '';

// If it's a menu skip
if ($this->hasMenuItem($query))
{
return;
}

// If it's a K2 download
if ((isset($query['task'])) && ($query['task'] === 'download'))
{
return;
}
Hi,

Thank you for the great feedback you have provided. I have added already the fix you provided to Route 66 for the next release.
Please let me know if you need anything else.

Regards
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Note: Our support team is currently on vacation, so please anticipate slightly longer response times. Thank you for your understanding!

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review