Jump to content
Welcome to our new Citrix community!

Responder Policy for a URL with a placeholder value


Recommended Posts

Hi All,

 

Can someone please help, I am struggling to find the right policy and action expressions for the below requirement

where the path redirection needs to be done for the site "example.com" from

 

"/extparagraph.do?product=%PRODUCT%" ---> "/app/#/product/%PRODUCT%/process/apply/page/start"

where %PRODUCT% can be any value.

Link to comment
Share on other sites

When building the new URL for the redirect, you can get the "product" value from the query string of the original request by using HTTP.REQ.URL.QUERY.VALUE("name of query parameter").

So your redirect expression could look like this:

"/app/#/product/" + HTTP.REQ.URL.QUERY.VALUE("product") + "/process/apply/page/start"

The expression evaluator is helpful for this kind of thing:

 

image.thumb.png.ece94d483d7c51470399b8a4f5cb2660.png

 

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...