# IOS: ngcordova InAppBowser plugin opens link in Webview always

**URL:** <https://forum.ionicframework.com/t/ios-ngcordova-inappbowser-plugin-opens-link-in-webview-always/58232>\
**Category:** ionic-v1\
**Created:** [July 21, 2016, 8:28pm UTC](https://forum.ionicframework.com/t/ios-ngcordova-inappbowser-plugin-opens-link-in-webview-always/58232 "2016-07-21T20:28:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anil\_sehgal10](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@anil\_sehgal10](https://forum.ionicframework.com/u/anil_sehgal10)\
**Post date:** [July 21, 2016, 8:28pm UTC](https://forum.ionicframework.com/t/ios-ngcordova-inappbowser-plugin-opens-link-in-webview-always/58232/1 "2016-07-21T20:28:06Z")

</div>

Hi All,

I am writing an ionic app in which I have to open the login page in a default browser other than the web view:  
var options = {  
location: ‘yes’,  
clearcache: ‘yes’,  
toolbar: ‘yes’,  
closebuttoncaption: ‘DONE’  
};  
$cordovaInAppBrowser.open(’’, ‘\_system’, options)  
.then(function(event) {  
// success  
})  
.catch(function(event) {  
// error  
});  
});

$cordovaInAppBrowser.open(’’, ‘\_self’, options)  
.then(function(event) {  
// success  
})  
.catch(function(event) {  
// error  
});  
});

$cordovaInAppBrowser.open(’’, ‘\_blank’, options)  
.then(function(event) {  
// success  
})  
.catch(function(event) {  
// error  
});  
});

In all the above cases, the app webview navigates to the login page rather than opening the login page in a new web browser.  
Interestingly, the app is working fine in ionic view with \_system as the option.

The is the only issue stopping the launch. Request you to please suggest.

Further More:  
For IOS:  
the navigation of webview in all cases only works if the:  
\< allow-navigation \> is set for the url

If the allow navigation is not set, it just puts a message in Xcode console saying:  
Navigation rejected as \< allow-navigation \> is not set for this url
