ring.middleware.absolute-redirects

Middleware for replacing relative redirects with absolute redirects. Useful
for clients that do not yet implement RFC 7231 (RFC 2616 does not allow
relative redirects).

absolute-redirects-response

(absolute-redirects-response response request)
Convert a response that redirects to a relative URLs into a response that
redirects to an absolute URL. See: wrap-absolute-redirects.

wrap-absolute-redirects

(wrap-absolute-redirects handler)
Middleware that converts redirects to relative URLs into redirects to
absolute URLs. While many browsers can handle relative URLs in the Location
header, RFC 2616 states that the Location header must contain an absolute
URL.