noir-clojure/lib-noir — pull request #3 by yogthos (2012-10-22 04:15:17+00:00)
Title: Update src/noir/response.clj

When a Noir application is deployed on an application server, such as Tomcat, and given a context root then it is ignored by the redirect function.

Since a user might legitimately want to redirect to a different context, redirect can't infer the context implicitly. I added a new helper called local-redirect, which will prepend the servlet context when it's available in the ring-request.

This allows local redirects to work correctly for both standalone and application server deployments.