Reply To: Search Filter Dynamic Url

Splash Forums PrettyFaces Users Search Filter Dynamic Url Reply To: Search Filter Dynamic Url

#25586

You could for example define a single parameter that also matches / characters and then parse it yourself. Something like:

.addRule( Join.path("/p/search/{filters}").to("/pages/search.xhtml") )
.where("filters").matches(".*").bindsTo(...)

But personally I don’t think that it is a good idea to place optional filters in the path part of the URL. I for myself would use query parameters instead, as they are optional by nature.