Links
This page covers how to link to Showpad assets and external URLs, and use local storage for state persistence.
What you'll learn
- How to link to assets, external URLs, and internal content
- How to use local storage to preserve app state
TL;DR
- Use
showpad://protocol for asset links - Use HTTPS for all external hyperlinks
- Do not use iframes for internal links; they will not work on iPad
- Use local storage to preserve user state between sessions
Links
| Link type | How to implement |
|---|---|
| Assets | Use <a href="showpad://file/{assetSlug}"> to link to an asset by its slug. |
| Hyperlinks | Use the <a href="{url}"> tag. Hyperlinks are loaded over the HTTPS protocol only. |
| Internal links | Do not use iframes for internal links; they will not work on iPad. |
note
Angular apps have <base href="/"> by default. Change this to <base href=""> to ensure files load properly.
Local storage
Use local storage to preserve app state between sessions. Users leave and return while maintaining their previous state: completed forms, selected language, and other settings.
Next steps
- URL Schemes - Link to Experiences, assets, and folders from your web app
- SDK Integration - Execute SDK functions from your HTML content
Was this page helpful?