Reply To: Change filter dispatcher

Splash Forums Rewrite Users Change filter dispatcher Reply To: Change filter dispatcher

#26313

I think there is an easier way for you to achieve this. You can restrict rules to a certain dispatch type in your rule definition. Just add the DispatchType condition to your rule:

.addRule()
.when( DispatchType.isRequest().and( Path.matches( "/foo" ) ) )
.perform( Forward.to( "/bar.jsp" ) )