Hello,
I want to get the current page URL, excluding the parameters...
e.g. /mycategory/mysubcategory?param=1
The above, without the bold part.
Reason: I want to create custom page variation links with my own parameters.
I want to do it from the product category view file, if that makes any difference (it shouldn't).
Any ideas?
Thanks
You can use the base joomla methods
https://api.joomla.org/cms-3/classes/Joomla.CMS.Uri.Uri.html#method_base (https://api.joomla.org/cms-3/classes/Joomla.CMS.Uri.Uri.html#method_base)
$jinput = JFactory::getApplication()->input;
$category=$jinput->getInt('virtuemart_category_id', 0);
$category_url = JRoute::_ ( 'index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $category , FALSE);
Thank you!