# Webhook response to change page

**URL:** <https://community.weweb.io/t/webhook-response-to-change-page/4929>\
**Category:** Ask us anything\
**Created:** [October 16, 2023, 5:13pm UTC](https://community.weweb.io/t/webhook-response-to-change-page/4929 "2023-10-16T17:13:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [October 16, 2023, 5:13pm UTC](https://community.weweb.io/t/webhook-response-to-change-page/4929/1 "2023-10-16T17:13:50Z")

</div>

I have a webhook that fires in a workflow on a button click to [Make.com](http://Make.com). That part works. What doesn’t is the webhook response at the end of the Make scenario that is setup to change to another page in my app. Here are the settings:

Status: 303  
Body:  
Header: “Location”: “appurl/page”

Is this something that should work?

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [October 16, 2023, 5:17pm UTC](https://community.weweb.io/t/webhook-response-to-change-page/4929/2 "2023-10-16T17:17:06Z")

</div>

How are you hitting make? Are you redirecting from make to WeWeb afterwards? Or how does it works? Could you explain a little deeper?

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [October 16, 2023, 5:28pm UTC](https://community.weweb.io/t/webhook-response-to-change-page/4929/3 "2023-10-16T17:28:06Z")

</div>

I’m using a Rest API Request action in a workflow.

 ![Screenshot 2023-10-16 Make](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/7a8bf62bb898b29ee9b2c0f794ea6a664bbb03d1.png)

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [October 16, 2023, 5:29pm UTC](https://community.weweb.io/t/webhook-response-to-change-page/4929/4 "2023-10-16T17:29:06Z")

</div>

Okay, and how you’re changing page via Make?  
Also what answer do you get from make? I think it’s not possible to change page in WeWeb via a REST call, but you could trigger a page change event IF something gets returned from the API Cal

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [October 16, 2023, 5:30pm UTC](https://community.weweb.io/t/webhook-response-to-change-page/4929/5 "2023-10-16T17:30:58Z")

</div>

At the end of the Make scenario I have a Webhook response with the page I want to be redirected to.

 ![Screenshot 2023-10-16 make2](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/18ac1131f08e5dbb4616768313b42772ca548b9e.png)

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [October 16, 2023, 5:31pm UTC](https://community.weweb.io/t/webhook-response-to-change-page/4929/6 "2023-10-16T17:31:49Z")

</div>

What I’d do is, return something like a success message with a success code from the API if it goes smoothly (or even a path of your app) and then use a **Pass through a condition** action and if the response is what you want, do a **Change Page** action in WeWeb.

For example, if the response you get is 303, you go and take the URL and use it in a change page workflow.

Is the URL on your application? Or is it an external URL? If it’s an internal URL you can simply pass a path/parameters and use change page, otherwise you can navigate to that URL that is returned from the REST API call in WeWeb.

I can’t immagine how you would trigger the change page from make directly.

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [October 16, 2023, 5:45pm UTC](https://community.weweb.io/t/webhook-response-to-change-page/4929/7 "2023-10-16T17:45:00Z")

</div>

Thanks for the help here. The URL is a page within my weweb app.

For some reason I wasn’t thinking about looking at the result of the workflow action and binding that to a weweb page change action. Having Make send the redirect is how I had it working with Softr.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [October 16, 2023, 5:58pm UTC](https://community.weweb.io/t/webhook-response-to-change-page/4929/8 "2023-10-16T17:58:30Z")

</div>

Yes, but this is the simplest way imo, glad to have helped 🙂
