# Openlink always open a new TAB

**URL:** <https://community.glideapps.com/t/openlink-always-open-a-new-tab/68477>\
**Category:** Ask for Help\
**Created:** [December 7, 2023, 2:36pm UTC](https://community.glideapps.com/t/openlink-always-open-a-new-tab/68477 "2023-12-07T14:36:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mns\_Glide](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mns_glide/32/2514_2.png) [@Mns\_Glide](https://community.glideapps.com/u/Mns_Glide)\
**Post date:** [December 7, 2023, 2:36pm UTC](https://community.glideapps.com/t/openlink-always-open-a-new-tab/68477/1 "2023-12-07T14:36:00Z")

</div>

I notice openlink always open a new window or TAB. This impacts user experience as they need to allow pop-ups. Some users may not know this and assume nothing happened.  
Is there any way to prevent this default behaviour and only allow it to open in the same window.

Thanks.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 7, 2023, 2:53pm UTC](https://community.glideapps.com/t/openlink-always-open-a-new-tab/68477/2 "2023-12-07T14:53:44Z")

</div>

You could use a Web Embed to keep the user within the app.

---

<div class="post-metadata">

**Author:** ![Mns\_Glide](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mns_glide/32/2514_2.png) [@Mns\_Glide](https://community.glideapps.com/u/Mns_Glide)\
**Post date:** [December 13, 2023, 10:24pm UTC](https://community.glideapps.com/t/openlink-always-open-a-new-tab/68477/3 "2023-12-13T22:24:07Z")

</div>

thanks Jeff. Web embed is working fine. My use case is a payment gateway. I can reach the payment gateway’s site and process payment and be directed to the gateway’s front end … However, I am unable to re-direct to Glide app. The error message is “refused to connect” as below. Any further advise please.

 ![a3r](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/6/f6711c6fe3934f96e9f81c0e2b0be007ae5572fa.jpeg)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 13, 2023, 10:52pm UTC](https://community.glideapps.com/t/openlink-always-open-a-new-tab/68477/4 "2023-12-13T22:52:11Z")

</div>

So the embedded payment gateway is trying to redirect back to your app from…within your app???

I guess that leaves two options:

1. Don’t let the payment gateway attempt to redirect back to your app because you are already in your app. Just close or hide the web embed.
2. Build your own href html link with the appropriate target and display it with a rich text component.

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [December 13, 2023, 10:58pm UTC](https://community.glideapps.com/t/openlink-always-open-a-new-tab/68477/5 "2023-12-13T22:58:25Z")

</div>

You can’t embed a payment gateway for many platforms (like Stripe and Square…), you have to create a payment flow inside the Glide.

I have a working sample here:

> [@credit\_card shopping\_cart Stripe payment integration for Glide and Google sheets with shopping cart and subscriptions](https://community.glideapps.com/t/stripe-payment-integration-for-glide-and-google-sheets-with-shopping-cart-and-subscriptions/68394):
>
> [Stripe PRO] Stripe PRO The most advanced payment Integration, with an integrated checkout. shopping cart inventory adjustment single payment subscriptions PDF invoicing payment link generator Google Sheets integration plus much more [[Cart checkout]](https://stripe-pro.glide.page/dl/Cart_checkout)[[Link generator]](https://stripe-pro.glide.page/dl/Payment_Link)[[PDF invoice]](https://stripe-pro.glide.page/dl/User_Profile) HTML and JavaScript-controlled entry fields, encrypted data transfer. You can try this App using a test mode checkout and test card number. (no sign-in is required) To receiv…
