News:

Support the VirtueMart project and become a member

Main Menu

Router issue in 4.2.12 and up

Started by Kuubs, July 13, 2024, 17:23:52 PM

Previous topic - Next topic

Kuubs

When i use Jroute for my product url it gets appended twice

/product/product

instead of just /product


Kuubs

Unfortunately this issue exists in the latest virutemart as well (4.2.18)

It's the continue link in the cart, instead of just /product it will print it twice, so /product/product

AH

Please show what you are doing rather than just saying "its a bug"

Is it code or template overrides you are working on?
Regards
A

Joomla 4.4.5
php 8.1

Kuubs

Quote from: AH on September 03, 2024, 19:01:34 PMPlease show what you are doing rather than just saying "its a bug"

Is it code or template overrides you are working on?

When you call the route function on the continue link in the cart, it does not generate the correct url. This doesnt happen on older versions:

<a href="<?php echo JRoute::_($continue_link) ?>"

Where the continue link is the last product url

/index.php?option=com_virtuemart&view=category&virtuemart_category_id=6&Itemid=890