# Link with 'Open in New Page' not working correctly?

**URL:** https://community.weweb.io/t/link-with-open-in-new-page-not-working-correctly/407
**Category:** Ask us anything
**Created:** [April 12, 2022, 3:24pm UTC](https://community.weweb.io/t/link-with-open-in-new-page-not-working-correctly/407 "2022-04-12T15:24:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mrcndrw](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mrcndrw](https://community.weweb.io/u/mrcndrw)
#### Post date: [April 12, 2022, 3:24pm UTC](https://community.weweb.io/t/link-with-open-in-new-page-not-working-correctly/407/1 "2022-04-12T15:24:49Z")

</div>

Hi,

I’m trying to have a Button when clicked link to a Stripe URL but not open in a new page.

Setting that option to ‘Off’ doesn’t do anything, and still opens a new browser window?

 ![CleanShot 2022-04-12 at 16.22.29@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/4db61d6d57dfd5ba9a4bd2828996b2c1de326ad0.jpeg)

---

<div class="post-metadata">

### Author: ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)
#### Post date: [April 12, 2022, 4:49pm UTC](https://community.weweb.io/t/link-with-open-in-new-page-not-working-correctly/407/2 "2022-04-12T16:49:03Z")

</div>

Have you seen this behavior on the published website or in the Editor?

It should work properly on the published website.

In the Editor:

- every internal link is opened on the same page, even if the “Open in new page” setting is “On”
- every external link is opened in a new page, even if the “Open in new page” setting is “Off”

This is because your WeWeb app is wrapped in an iframe in the Editor.

It’s a great observation though. I’ve added your feedback to our user research so we can think of a good way to either change that or warn you when you use this setting.

---

<div class="post-metadata">

### Author: ![mrcndrw](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mrcndrw](https://community.weweb.io/u/mrcndrw)
#### Post date: [April 12, 2022, 5:14pm UTC](https://community.weweb.io/t/link-with-open-in-new-page-not-working-correctly/407/3 "2022-04-12T17:14:57Z")

</div>

Only in Preview mode.

Makes sense as Preview is in a wrapper.

Thanks for the heads up Joyce.
