# Open an external website using a workflow

**URL:** <https://community.weweb.io/t/open-an-external-website-using-a-workflow/4768>\
**Category:** Ask us anything\
**Created:** [October 6, 2023, 9:54am UTC](https://community.weweb.io/t/open-an-external-website-using-a-workflow/4768 "2023-10-06T09:54:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lebom326](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@lebom326](https://community.weweb.io/u/lebom326)\
**Post date:** [October 6, 2023, 9:54am UTC](https://community.weweb.io/t/open-an-external-website-using-a-workflow/4768/1 "2023-10-06T09:54:36Z")

</div>

I need assistance in opening an external website using a workflow.

I have a payment API endpoint that returns an authorization URL:

![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/115bff09f873ec49f0a63474929227ceb3a887df.png)

The response returns an authorization URL:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/3/3f04fcff464bb1dd838f448126ef59243b2d4b12.png)

In the next workflow step, I need to automatically transfer the user to the URL to initiate a payment.  
I tried the “change page” action with the path set as the authorization URL but it is not working.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/3/300206ed9e53eb58977550e320dfed104ae32f55.png)

I can see that the value of the path is the correct URL but the frontend does not transfer the user to the payment page, which must look like this:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a9f26f1f77256689a0274bb6fb7d402027ddf2d7.png)

I know that the URL works because if I paste it in the browser address, it works but I need to do this automatically using the workflow as the URL changes per user (not a static URL).

Please assist.

---

<div class="post-metadata">

**Author:** ![Mael](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/mael/32/13246_2.png) [@Mael](https://community.weweb.io/u/Mael)\
**Post date:** [October 10, 2023, 8:52am UTC](https://community.weweb.io/t/open-an-external-website-using-a-workflow/4768/2 "2023-10-10T08:52:54Z")

</div>

Hello,

We don’t have a native action to redirect to an external link. You can use our action “custom Javascript” and write this code: `Window.open()`

---

<div class="post-metadata">

**Author:** ![lebom326](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@lebom326](https://community.weweb.io/u/lebom326)\
**Post date:** [October 10, 2023, 12:19pm UTC](https://community.weweb.io/t/open-an-external-website-using-a-workflow/4768/3 "2023-10-10T12:19:41Z")

</div>

Thank you for the tip. It works perfectly as intended; much appreciated.  
I do not have coding experience but now I am learning!
