code: public static String getRequestUrl(final Page current) {
  		if (current != null) {
  			return current.getLocation().toString();
  
  		} else {
  			final HttpServletRequest httpRequest=((ServletRequestAttributes)RequestContextHolder.currentRequestAttributes()).getRequest();
  			return httpRequest.getRequestURL().toString();
  		}
  	}
docs: Gets the request url.
  
  @param current
  the current
  @return the request url