# Webview: Open link outside the app (External browser) - Help

**URL:** https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688
**Category:** Questions about Thunkable X
**Created:** [December 24, 2020, 7:07am UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688 "2020-12-24T07:07:37Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![sam\_mo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sam_mo/32/78596_2.png) [@sam\_mo](https://community.thunkable.com/u/sam_mo)
#### Post date: [December 24, 2020, 7:07am UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/1 "2020-12-24T07:07:37Z")

</div>

Hello!

Is there a way to make Webview open links outside the app (with Safari or Chrome)?  
For example by injecting JS?

Thank you guys!

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [December 24, 2020, 8:13am UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/2 "2020-12-24T08:13:58Z")

</div>

You can use this:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/8/e8b5927b653e7d3a60b1097347193b8b3b583779.png)  
You can find this at the bottom of the CONTROL drawer.

---

<div class="post-metadata">

### Author: ![sam\_mo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sam_mo/32/78596_2.png) [@sam\_mo](https://community.thunkable.com/u/sam_mo)
#### Post date: [December 24, 2020, 8:35am UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/3 "2020-12-24T08:35:03Z")

</div>

> [@codeswept](#):
>
> ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/8/e8b5927b653e7d3a60b1097347193b8b3b583779.png)  
> You can find this at the bottom of the CONTROL drawer

Is it part of Webview module? I was referring to links displayed by a webview.  
Thanks

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [December 24, 2020, 8:36am UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/4 "2020-12-24T08:36:05Z")

</div>

to open links in app then use web viewer if you want to open links in a browser and then use the open link block

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [December 24, 2020, 8:37am UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/5 "2020-12-24T08:37:36Z")

</div>

is that working for you

---

<div class="post-metadata">

### Author: ![sam\_mo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sam_mo/32/78596_2.png) [@sam\_mo](https://community.thunkable.com/u/sam_mo)
#### Post date: [December 24, 2020, 9:03am UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/6 "2020-12-24T09:03:58Z")

</div>

Thank you for your reply. Let me give more details:

> > The webview opens all links inside the webview itself by default. in other words, links are opened inside the Thunkable app.

My request is: To open the links (being inside a webview) in external browser (Chrome etc).  
Knowing that a webview: Opens web app based on its URL.

Does is make sense?

Something like to override Webview.

```auto
@Override
        public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
            Intent i = new Intent(Intent.ACTION_VIEW, request.getUrl());
            startActivity(i);
            return true;
        }

```

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [December 24, 2020, 9:08am UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/7 "2020-12-24T09:08:58Z")

</div>

so you are telling to open link in chrome app of device if yes then use the open link block

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [December 24, 2020, 9:25am UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/8 "2020-12-24T09:25:50Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/5/75f4da2395f33e4c5977a1c60af17c44d62d6c7a.png)  
If you want to open the link that was inside the Web Viewer, this might work.  
Happy Thunking!

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [December 24, 2020, 7:05pm UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/9 "2020-12-24T19:05:46Z")

</div>

Do you mean you want to redirect within the webviewer and not in the native phone browser?

Or

You want to click a link in webviewer and be redirected to the native phone web browser?

---

<div class="post-metadata">

### Author: ![sam\_mo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sam_mo/32/78596_2.png) [@sam\_mo](https://community.thunkable.com/u/sam_mo)
#### Post date: [December 24, 2020, 10:04pm UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/10 "2020-12-24T22:04:14Z")

</div>

> [@jared](#):
>
> You want to click a link in webviewer and be redirected to the native phone web browser?

I want to click a link in webviewer and be redirected to the native phone web browser

---

<div class="post-metadata">

### Author: ![bitbite0073](https://avatars.discourse-cdn.com/v4/letter/b/90db22/32.png) [@bitbite0073](https://community.thunkable.com/u/bitbite0073)
#### Post date: [May 24, 2021, 5:57pm UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/11 "2021-05-24T17:57:24Z")

</div>

can someone please tell me how can i restrict a link opening in webview only?  
i don’t it to be opened in mobile browser.

---

<div class="post-metadata">

### Author: ![clayonbrown3177v](https://avatars.discourse-cdn.com/v4/letter/c/7993a0/32.png) [@clayonbrown3177v](https://community.thunkable.com/u/clayonbrown3177v)
#### Post date: [May 24, 2021, 6:48pm UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/12 "2021-05-24T18:48:13Z")

</div>

im trying to add my website but it keeps saying refuse to connect what should i do???

---

<div class="post-metadata">

### Author: ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)
#### Post date: [May 24, 2021, 7:09pm UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/13 "2021-05-24T19:09:15Z")

</div>

Hey @clayonbrown3177v this seems to be a different qeustion than where the original topic is about.  
Could you please create a separate topic with your qeustion.  
Thanks

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [May 25, 2021, 11:18am UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/14 "2021-05-25T11:18:45Z")

</div>

are you testing on companion or in website thunkable creator website itself @clayonbrown3177v

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 12:19pm UTC](https://community.thunkable.com/t/webview-open-link-outside-the-app-external-browser-help/1041688/15 "2024-11-08T12:19:26Z")

</div>


