public static String toAbsolutePath ( final String relativePagePath ) { final HttpServletRequest req = ( HttpServletRequest ) ( ( WebRequest ) RequestCycle . get ( ) . getRequest ( ) ) . getContainerRequest ( ) ; return RequestUtils . toAbsolutePath ( req . getRequestURL ( ) . toString ( ) , relativePagePath ) ; }
Helper method for the migration from wicket - version 1 . 5 . x to 6 . x .