After deleting coupon in VM cart, the site is routed to an non SEF URL


  • Default avatar
    gerald.bader    
     6 years ago
    0

    Hi!

    When the user deletes an added coupon from the cart, the site is routed to a non SEF URL.
    How can I fix that?

    Kind regards,
    Gerald
  • Your avatar
    seyi    
     6 years ago
    0

    Try this,

    In the file www/plugins/vmcoupon/awocoupon/awocoupon.php, around line 34 is this:
    <?php
            $app
    ->redirect('index.php?option=com_virtuemart&view=cart&Itemid='.JRequest::getInt('Itemid'));
    ?>


    Change it to this:
    <?php
            $app
    ->redirectJRoute::_'index.php?option=com_virtuemart&view=cart&Itemid='.JRequest::getInt('Itemid') ) );
    ?>