VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Kuubs on July 13, 2024, 17:23:52 PM

Title: Router issue in 4.2.12 and up
Post by: Kuubs on July 13, 2024, 17:23:52 PM
When i use Jroute for my product url it gets appended twice

/product/product

instead of just /product

Title: Re: Router issue in 4.2.12 and up
Post by: Kuubs on September 03, 2024, 13:23:58 PM
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
Title: Re: Router issue in 4.2.12 and up
Post by: AH on September 03, 2024, 19:01:34 PM
Please show what you are doing rather than just saying "its a bug"

Is it code or template overrides you are working on?
Title: Re: Router issue in 4.2.12 and up
Post by: Kuubs on September 16, 2024, 09:45:00 AM
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