Wix http functions redirect after post

How is it possible to achieve the following behaviour:

Sorry if it is a dumb question, but I have been searching and trying for hours and I have found nothing. Well, I don’t think it helps, but if found that Post/Redirect/Get (PRG) exists.

#html #javascript #http #post #exposedfunctions

Hi , I want the same result as Yours , You Found any solution please share that method ,appreciate you !

i did not…

You can use this to redirect users from an HTTP Endpoint I was also searching for this and I got my answer from Discord server of Velo

Thanks to @plomteuxquentin !

return response({
        status: 301,
        headers: {
            location: 'https://www.example.com/'
        }
    })

https://www.wix.com/velo/reference/wix-http-functions/response

1 Like

Thank You!!