Prevent Safari opening links when viewing as a Mobile App

From this post http://chiefcreative.me/post/48945447409/make-website-behave-as-ios-web-app#.UYTL57WsiSo #5

Prevents the demo apps links from opening in Safari when viewing as a Mobile App