Links inside a an Integrated Web App will operate differently inside an App than inside a web browser. That's why Liquid State has created a ls-links.js file so handle links inside Web Apps and the Apps themselves.
To link to websites inside a web app using ls-links.js
- Ensure you have Created a Web App
- Download the example Web App
- Copy the ls-links.js file from the folder
- Reference the Javascript inside your HTML file like this:
<script src=
"./js/ls-links.js"
type=
"text/javascript"
></script>
Expand title Link opens in the In-App Browser (recommended) <a
class
=
"ls-link"
href=
"https://example.com"
>
Expand title Link opens in External Browser (Safari on iOS) <a
class
=
"ls-link ls-link-external"
href=
"https://example.com"
>
Expand title Link allows upload of attachments <a
class
=
"ls-link ls-link-attachments"
href=
"https://example.com"
>