Hi all.
In some cases I keep uri parts as constants and reuse them in filters, other beans and mappings. While testing mapping inheritance I came across the situation where small improvement might be useful. Consider three mappings:
@URLMapping(id="map1", pattern = "/test/", viewId="/x.xhtml")
@URLMapping(id="map2", pattern = MyBean.URI_PART, viewId="/y.xhtml")
@URLMapping(id="map3", pattern = MyBean.URI_PART, parentId = "map1", viewId="/z.xhtml")
public class MyBean {
public final static URI_PART = "/some/";
}
All works fine except the annoying adjacent slashes for third mapping which produces “/test//some/”. Regardless of my test case: I’ve never heard of someone that would intentionally use double (multiple) slashes in web design but I’m sure it’s not good from seo point of view. My low priority proposal is to create new filter config parameter which would trigger the removal of multiple slashes in url builder.