title: Wicket: Relative to absolute URL or get base URL
body: <p>If I have a relative path to a static asset (flash/blah.swf), what is the best way to programmatically convert this to an absolute URL (<a href="http://localhost/app/flash/blah.swf" rel="nofollow noreferrer">http://localhost/app/flash/blah.swf</a>)? Or what is the best way to get the base URL of the Wicket application? I've tried using RequestUtils.toAbsolutePath but it doesn't seem to work reliably and is frequently throwing exceptions. This needs to work on all servers the app is deployed to.</p>