Forum Discussion
IRule 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. Please update using the links below:
Android Users: Click here,
IOS Users: Click Here"
Ofcouse, the links should take them to the app store's app.
EDIT: I am able to display the JSON message but only needs to know how to display the links to the app stores.
Thank you.
2 Replies
- Yoann_Le_Corvi1
Cumulonimbus
Hi,
Not 100% sure, but I think pointing to the application ID in the relevant store should be fine. (e.g. https://play.google.com/store/apps/details?id=ch.admin.meteoswiss&hl=en) ?
Yoann
- jaikumar_f5
Noctilucent
Hi
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
* 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
