public static String getPathWithinApplication(HttpServletRequest request) {
        return normalize(removeSemicolon(getServletPath(request) + getPathInfo(request)));
    }
Return the path within the web application for the given request.
Detects include request URL if called within a RequestDispatcher include.
<p/>
For example, for a request to URL
<p/>
<code>http://www.somehost.com/myapp/my/url.jsp</code>,
<p/>
for an application deployed to <code>/mayapp</code> (the application's context path), this method would return
<p/>
<code>/my/url.jsp</code>.

@param request current HTTP request
@return the path within the web application
web/src/main/java/org/apache/shiro/web/util/WebUtils.java