- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2019
10:56 PM
04-06-2019
10:56 PM
Magento 2 - Redirect to external url with parameters from Controller
I am using the below code for a POST request.
$params = array(
'token'=> $hello["token"]
);
$this->_redirectUrl($url,$params);
But the redirect is not happening.
Can anyone help me with this?
Thanks in advance.
Labels:
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2019
04:13 AM
04-07-2019
04:13 AM
Re: Magento 2 - Redirect to external url with parameters from Controller
Hello @gdhar67
Use _redirect function instead of redirectUrl
$params = array( 'token'=> $hello["token"] ); $this->_redirect($url,$params);
If my answer is useful click Kudos and Accept as Solution
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2019
06:23 AM
04-07-2019
06:23 AM
Re: Magento 2 - Redirect to external url with parameters from Controller
I already tried that it didn't work
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2019
11:47 AM