Hi, Alexander Klimetschek schrieb: > BTW, how do I set vanity URLs in the current Sling? Do they allow > sub-paths when compared to vanity paths, eg. if there is a > sling:vanityPath = "/foo" set on /content/site/foo, will the request > /foo/something be forwarded to /content/site/foo/something with vanity > URLs? IIRC, this is not the case with vanity paths.
You set an absolute path in the property. If the request URL cannot be resolved, a query is run which asks for a sling:vanityPath property set to the request URL path (actually HttpServletRequest.getPathInfo()). If found the resource either used directly or a redirect is sent back to the client if the sling:redirect property is set to true. Regards Felix
