Re: defined rule doesn't work in new version rewrite.

Splash Forums Rewrite Users defined rule doesn't work in new version rewrite. Re: defined rule doesn't work in new version rewrite.

#22470

Thanks Christian,

Yes, that’s right. You can also add constraints to your parameters via:

.addRule(
Join.path("/manager/category/{categoryClass.categoryType}.xhtml")
.where("categoryClass.categoryType").constrainedBy(new RegexConstraint("(menu|product|article)"))
.to("/manager/manager/category/category_list.xhtml")
)

The advantage of constraints is that you can add multiple. ( I think. ;))