Redirect link in Ionic text field not opening in browser

Multi tool use
Redirect link in Ionic text field not opening in browser
I have an app containing multiple editable forms.
In all of them there is a URL field. I want this to open that URL in a browser window. Unfortunately at present it opens with my sites URL prepended before it.
ie If someone enters www.othersite.com and my site URL is www.mysite.com, clicking on the link will open www.mysite.com/www.othersite.com
How do I get the app to open www.othersite.com instead?
I have tried that, however I have to append 'https://' to the link. This is fine if a user only enters www.othersite.com, however it would be preffered if Ionic would not assume that missing http at the front of the URL means to add the apps URL to the front.
– radiobrain77
Jul 3 at 8:58
1 Answer
1
Try this way
Add Cordova Inappbrowser plugin and try
var ref = cordova.InAppBrowser.open('http://www.othersite.com', '_blank', 'location=yes');
or
window.open('www.othersite.com','_system','location=no');
The first one did not work, and the second one opened in a popup which I did not want to happen.
– radiobrain77
Jul 3 at 9:33
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
stackoverflow.com/questions/50285051/… See this
– Gurbela
Jul 3 at 8:35