Skip to content

Commit 4537706

Browse files
Change card delete redirect
1 parent df2237a commit 4537706

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Controller/CardController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use PayPlugModule\Model\PayPlugCardQuery;
66
use Thelia\Controller\Front\BaseFrontController;
77
use Thelia\Core\HttpFoundation\Request;
8+
use Thelia\Tools\URL;
89

910
class CardController extends BaseFrontController
1011
{
@@ -16,7 +17,7 @@ public function deleteCurrentCustomerCard(Request $request)
1617
$card->delete();
1718
}
1819

19-
return $this->generateRedirect($this->getSession()->getReturnToUrl());
20+
return $this->generateRedirect(URL::getInstance()->absoluteUrl('/order/invoice'));
2021
}
2122

22-
}
23+
}

0 commit comments

Comments
 (0)