baker icon indicating copy to clipboard operation
baker copied to clipboard

Open links in Safari?

Open viDU85 opened this issue 15 years ago • 9 comments

Hello,

When I touch in an external link (I´m use target="_blank" in my html file) the link is opened into my book. I want open the link in Safari. How Can I change this?

Thanks.

viDU85 avatar Oct 17 '11 18:10 viDU85

Hi!

What version of Baker are you using? :)

folletto avatar Oct 17 '11 18:10 folletto

Hi! Try to use this, http://www.yourlink.com?referrer=Baker in a link tag

andrewogi avatar Oct 17 '11 18:10 andrewogi

Hi folletto,

I downloaded the latest version today. With the previous version I don't have any problem with the externals links.

Thanks for your help!

viDU85 avatar Oct 17 '11 18:10 viDU85

Hi andrewogi,

Your suggestion works, but when I return to my app the screen goes white. I´m use the "three-cards" rendering type.

viDU85 avatar Oct 17 '11 18:10 viDU85

Other question: is it possible to link to an app in the App Store without opening Safari?

danielbenjamins avatar Oct 17 '11 19:10 danielbenjamins

This answer should be what you're looking for: http://stackoverflow.com/questions/1453711/reliably-opening-app-store-links-from-a-uiwebview :)

folletto avatar Oct 17 '11 19:10 folletto

or u can simply use itms:// protocol instead of http://

upd: just tested, it can be achieved by link directly pointing to your app in App Store. http://itunes.apple.com/ru/app/ibooks/id364709193?mt=8

with itms:// method iTunes will open for sec and then redirect you to App Store, it is good. Updated method perforable more.

andrewogi avatar Oct 17 '11 19:10 andrewogi

Thanks for the info. I found out that it's the iPad Simulator who broke it, the link I created was ok :)

danielbenjamins avatar Oct 17 '11 19:10 danielbenjamins

Nice. :)

folletto avatar Oct 17 '11 20:10 folletto