Liam
Liam2w ago

Redirecting Help

Hi Windmill team 👋 We're currently trying to set up a redirect with Windmill and could do with some help. We'd like to redirect a user to Windmill from Heyflow, have Windmill do XY and create another redirect link based off of XY, and then redirect the user onwards to that new link. Heyflow unfortunately does not have the functionality of sending a payload to Windmill and then recieveing a redirect link in return, meaning we'd need to outsource the redirecting of the user to Windmill somehow. Is it possible with Windmill to; - Set up another site (e.g. Heyflow) to redirect to: https://windmill-http-endpoint.com/?a1=@First_Name%20@Last_Name&a2=@E_Mail&a3=@mapsNativeSelectPv&a4=@Produkte&autofill=true - Use those data parameters to create a new redirect link in Windmill (which itself depends on another service, but that's not relevant for this underlying issue), - and then redirect the user onwards to that new url We'd greatly appreciate if you could point us in the right direction when it comes to using Windmill effectively to construct and use redirects 🤔 Thank you! 🙏
No description
5 Replies
rubenf
rubenf2w ago
you can use a custom redirect status code and custom header to make it a redirect response
rubenf
rubenf2w ago
Webhooks | Windmill
Webhooks are a way to interact with Windmill using standard web technologies.
Liam
LiamOP2w ago
Thank you! We'll try using this later today and I'll get back with further questions if needed. Appreciate the help 🙏
Liam
LiamOP2w ago
@rubenf Hiya 👋 Instead of actually executing the redirect, we currently just see this (screenshot) in the browser after attempting to redirect with windmill, with a url that looks like this: https://app.windmill.dev/api/r/xxxx/... Looking at the docs, I think the issue is related to that "r", or rather that this indicates we're not exposing the correct type of webhook 🤔 Is there something we're missing here that you could point us towards? 🙏 Thank you!
No description
Liam
LiamOP2w ago
RESOLVED The solution was to use windmill-specific header types in the response: return { windmill_status_code: 302, windmill_headers: { Location: new_redirect_url, }, Thank you for your help! 🙏 ✨

Did you find this page helpful?