public void setContextRelative(boolean contextRelative) {
        this.contextRelative = contextRelative;
    }
Set whether to interpret a given URL that starts with a slash ("/")
as relative to the current ServletContext, i.e. as relative to the
web application root.
<p/>
Default is "false": A URL that starts with a slash will be interpreted
as absolute, i.e. taken as-is. If true, the context path will be
prepended to the URL in such a case.

@param contextRelative whether to interpret a given URL that starts with a slash ("/")
                       as relative to the current ServletContext, i.e. as relative to the
                       web application root.
@see javax.servlet.http.HttpServletRequest#getContextPath
web/src/main/java/org/apache/shiro/web/util/RedirectView.java