#500 Posted in ‘Route 66’

Latest post by Lefteris Kavadas on Monday, 23 December 2019 11:53 EET

Pedro Horacio González
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.

Pedro Horacio González
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;
}

Lefteris Kavadas
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

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 .

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