Forum Discussion
Todd_Behrens_20
Nimbostratus
Dec 14, 2017Insert JavaScript If URL path contains word
Hi Everyone, im kind of newbie when it comes to irules and was hoping someone could help me out. I'm looking to insert a javascript into the header of http response only if a certain word is in the U...
crodriguez
Dec 14, 2017Ret. Employee
You are conditionally setting the variable named "uri" only if the string "anakin" is present in the HTTP URI. If "anakin" is NOT in the URI, the HTTP_RESPONSE code still executes but there is no "uri" variable. You will have to include some sort of code that instructs the system what to do if "anakin" is not in the URI.
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