Re: Keep url parameters when posting

Splash Forums Rewrite Users Keep url parameters when posting Re: Keep url parameters when posting

#22823

detestable
Participant
.defineRule()
.when(Direction.isInbound()
.and(Path.matches("/admin/{segmentIdentifier}/product")
.where("segmentIdentifier")
.bindsTo(PhaseBinding.to(El.property("#{segmentBean.identifier}")).after(PhaseId.RESTORE_VIEW))
)
)
.perform(Forward.to("/WEB-INF/faces/admin/product.xhtml"))
.addRule(Join.path("/admin/{segmentIdentifier}/product").to("/WEB-INF/faces/admin/product.xhtml").when(Direction.isOutbound()))

Is working well.

I wish I could make only one rule but I’m glad it is working now!

Thank you!