Internal and External Links
Pugpig handles both internal and external links.
An internal link is any link to a page with in the same edition. Internal links can be relative or absolute but can not be fully qualified. Links to other pages within the edition will work offline, and clicking them will take the user to that page within the edition.
External links are fully qualified. They only work when online, and will open the link in an embedded web browser by default.
Linking to pages in other editions is not supported as a user may have no access or may not have downloaded that edition.
Protocol-relative URLs
These are not supported and are considered an anti-pattern which allow man-in-the-middle attacks (see https://www.paulirish.com/2010/the-protocol-relative-url/). Please ensure all Fully Qualified URLs use https. There is no good reason not to.
Avoid Query Strings on URLs
You should avoid query strings and cache busting URLs - the manifest generated will not include the query string. You should manually remove any of these from the source code if they are generated by a tool such as Hype. The Hype generated URLs will not work:
/editions/edition1/asset/hype_generated_script.js?80953
/editions/edition1/asset/Resources/HYPE.js?hype_version=100
Comments
0 comments
Please sign in to leave a comment.