A zap with 3 steps…
- Webhook to catch 2 parameters from WordPress.
- Filter condition
- Webhook to request a redirection to a target url on WordPress,
Zap ran successfully, but did not really trigger the redirection on WordPress,
Tried to create a function handle_custom_redirect, same issue.
Tried to use redirection plugin, but the plugin author answered: It’s not possible to redirect a REST API route.
Tried to add the Nginx rules for the custom redirect. Tested https://see.architdz.tempurl.host/wp-json/custom/v1/precourse-redirect in browser will redirect to target url correctly.
But Webhook custom request with same url as above and method GET, sent successfully, but did not really trigger the redirection on WordPress,
Any idea why this is happening?
Thanks
p.s. Saw a discussion for “Webhooks need the ability to send 303 redirect response” as a feature request 2 years ago, is there something we should know?