Nevada Opera
Posts: 0
Joined: Wed May 08, 2013 10:33 pm

Hyperlinks in iOS Home Screen Apps open in same window

I've developed an app and when testing on iOS I found that opening a HTML5 Web App from the Home Screen (using the Add to Home Screen option from the browser) handles opening hyperlinks differently than from within the Safari Web browser.

Steps to reproduce:

  1. Create a publish a HTML5 Mobile Web App with a hyperlink to an external Web site. Specify "Open in new window" on the link options.

  2. Open the URL for site.

  3. Click on the hyperlink - it will open in a new window. Switch back the Mobile Web App window.

  4. Use the Share button and "Add to Home Screen"

  5. Open the Mobile Web App from the Home Screen

  6. Click on the hyperlink - the target page will open in the same window and the user will not be able to navigate back the Mobile Web App

    Anyone have a solution to this problem?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Hyperlinks in iOS Home Screen Apps open in same window

Hi - we will test and update.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Hyperlinks in iOS Home Screen Apps open in same window

Illya will test this, but it's possible that when you launch the app via a shortcut, iOS treats it more like an app and opens all links within the same window.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Hyperlinks in iOS Home Screen Apps open in same window

I tested the above steps and in my case all links are opened in a Safari browser.
So you can always return back to a one page app by double clicking the home button.

One note I've made it using Hosting tab and publishing it on the Web.

Nevada Opera
Posts: 0
Joined: Wed May 08, 2013 10:33 pm

Hyperlinks in iOS Home Screen Apps open in same window

In my hosted app published at: http://mobile.nevadaopera.org/Opera.html
the behavior is a I described in the steps above.

The links open in the same window. The only way to return to the app is push the home button and re-open the app from the home screen.

This is on iOS 6.

I'm going to try an hack around a JavaScript handler.

Nevada Opera
Posts: 0
Joined: Wed May 08, 2013 10:33 pm

Hyperlinks in iOS Home Screen Apps open in same window

Just to clarify, I'm adding a "Open a URL" to the "Click" event on a component, ref screen shot. Image

Using the "Link" works as expected

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Hyperlinks in iOS Home Screen Apps open in same window

I will test it more and update.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Hyperlinks in iOS Home Screen Apps open in same window

I can't reproduce your problem. All links are open in a new tab in Safari (with "Navigate to Link" and "Navigate to Link" + "Open in new window") - and by double clicking Home button I can return into the app.
Your public app is without a link that is shown on a screenshot, so I can't test it.
Just in case, if you are making some changes in the app and Saved them - goto Hosting tab and re-publish your app.

Return to “Issues”