Redirect not working
Hi,
I had this code working before but now its not. In the console.log, the url is display but when using response.redirect, it doesn't redirect anymore.
Is there something wrong in calling the response.redirect?
Thanks.
var callback = function(err, data) { if (err) { return response.status(500).send(err); } if (data){ console.log(data.redirectUrl) return response.redirect(data.redirectUrl); } }
Hey @jbrhinalyn 👋
Please, read this part of the doc: https://adonisjs.com/docs/4.1/response#_no_callbacks_please
Thanks @RomainLanz .
I have no choice because the payment gateway that i'm using uses that kind of coding. I just add response.implicitEnd = false to make it works upon reading the documentation.
Thanks Bro.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.