Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Post Closed
wei li
4
Views
4
Comments
[Offline Apps] How to fallback to an offline screen when user enter an URL with no offline support?
Question
Forge
Offline
Offline Apps (O11)
Forge asset by
Offline Apps Team
For my project, I only need to add offline support for a few pages, but I want to redirect user to one of the offline screen if no internet connection when user try to open an URL which is not offline enabled. Can someone share some ideas on how to achieve this?
Pedro Cardoso
Hello wei.
If you have the latest version of the
Offline
component, you'll find that you have a web block called "Offlineredirect" that does just what you're asking for!
Cheers
wei li
Hi Pedro,
If I understand it correctly, the web block "Offlineredirect" will redirect user only if user is already on the page when connection is lost. My case, I have to redirect user to an offline page when user enter a URL which is not reachable because there is no connection. I end up generating my own cache manifest file, and manually list all resources that need to be cached, and put the fallback URL there. It solves my problem.
Cheers
Pedro Cardoso
Ok, seems like a great solution. What we did in our apps was to disable the buttons that navigate away from the offline enabled pages.
wei li
It would be nice if there is API to add the fallback URL to the auto generated cache manifest, or a component a developer can drop on a screen to make it as fallback screen
Loading...