On Tue, Jan 26, 2010 at 12:30, Felix Meschberger <[email protected]> wrote: > How about converting the RedirectServlet into a OptingServlet and > implement the accepts mehtod as follows: > > public boolean accepts(SlingHttpServletRequest request) { > return !JsonRendererServlet.EXT_JSON.equals( > request.getRequestPathInfo().getExtension()); > } > > This would cause the RedirectServlet to be ignored for JSON requests and > instead have the redirect resource handled with the DefaultGetServlet.
+1 I saw that in the patch earlier and didn't liked it either, but I had no good idea how to solve it ;-) Regards, Alex -- Alexander Klimetschek [email protected]
