Reply To: Trailing slashes & the rewrite @Join annotation

Splash Forums Rewrite Users Trailing slashes & the rewrite @Join annotation Reply To: Trailing slashes & the rewrite @Join annotation

#27410

IIRC you can combine the TrailingSlash rule with other conditions to restrict for which URLs the rule should apply. Something like this:

.addRule( TrailingSlash.append() )
.when( Path.matches("/foobar/{*}") )

But I don’t remember all the details.