This worked well on previous versions:
<
a
href
=
"http://apache.org"
data-rel
=
"external"
target
=
"_blank"
>
But now it still opens in the same webview as the app itself.
Any tips how to force the links to open externally? Preferably without using javascript.
5 Answers, 1 is accepted
I think that the problem might be related to a specific phonegap behavior. Can you please check this article and see if the suggestions listed in it work for you?
Kind regards,Petyo
the Telerik team
Perhaps for future releases of Kendo UI Mobile you could make this happen automatically depending on the target attribute of the anchor element. For example if the target is "_blank" or "_iab" it calls the window.open and makes the page load in the InAppBrowser.
We tried different solutions for overriding the a click event, but found none that worked 100%.
Thank you for your suggestion. I am not sure if we should assume and hard-code the external links behavior on behalf of the application developer, though. From what I see, PhoneGap is also not sure what people expect to happen when a link with target="_blank" is clicked, hence the abundance of discussions (and solutions) available as google results.
If you discover that Kendo UI Mobile is somehow interfering with the suggested solutions (e.g. a solution works in a regular web page with links in it, but does not work with data-rel="external" links when a Kendo UI Mobile app is instantiated), please let us know. We will do our best to help.
Petyo
the Telerik team
This is the article which I linked to originally.
Regards,
Petyo
Telerik