Re: Outbound URL fixup rule

Splash Forums Rewrite Users Outbound URL fixup rule Re: Outbound URL fixup rule

#23463

Have this rule:

config.defineRule()
.when(Direction.isOutbound()
.and(Path.matches("{p}/WEB-INF/{s}")
.where("p").matches(".*")
.where("s").matches(".*xhtml")))
.when(QueryString.parameterExists("execution"))
.perform(Substitute.with("{p}/controller/flow?execution={execution}"));

Also, in a bean I have the correct values for controller/flow but have not found a way to bind them to a variable so the substitution reads as {p}/{controllerPath}?execution={execution}.

Thanks,