How do I end the workflow by displaying a thank you page?

This topic was automatically generated from Slack. You can find the original thread here.

Peter Roden : How do I end the workflow by displaying a thank you page?

Raymond Camden : you can $respond with html, Triggers

Raymond Camden : you could also respond with a redirect back to a regular html page

Peter Roden : Hi Raymond

Peter Roden : How would I redirect to another html page?

Dominik Fischer : ```
await $respond({
status: 301,
headers: { “Location”: “https://www.google.com” },
});

Raymond Camden : what they said :slightly_smiling_face:

Peter Roden : Thank you so much Raymond. It worked a treat.

Raymond Camden : Thank Dominik for sharing the code to actually do it :slightly_smiling_face:

Peter Roden : Thanks