Forum Discussion
VDaemon
Nimbostratus
Dec 06, 2019IRule to display users "the mobile app is outdated. Please update using the links below: Android: Click here, IOS: Click Here"
Dear Community, Looking for some help. We have a mobile app whose URL is hosted on F5. I want to write an irule that displays the following message to the users. "The mobile app is outdated. Plea...
jaikumar_f5
Noctilucent
Dec 12, 2019Hi
You should have to escape the " characters for that, else you'll see the message content alone.
The below should help.
when HTTP_REQUEST {
if { SOMECONDITION } {
HTTP::respond 200 content "<html><head><title>Maintenance Page</title></head><body>The mobile app is outdated. Please update using the links below: Android: Click <a href=\"https://play.google.com/store/\">here</a>, IOS: Click <a href=\"https://play.google.com/store/\">here</a></body></html>"
}
}Notice - href=\" & \">here, hope this helps. I have tested too.
Please mark the thread as solved it this solves your requirement.
Edit: Forgot to tell, there is Ifile method as well. In case you want to explore that.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
