/** * Constructs a URL to the current page. This method can only be called within an active wicket request because it * relies on the {@link RequestCycle} threadlocal. * * @return url to the current brix page * @throws BrixException if the current request was not for a brix page */ public static String urlForCurrentPage() { return urlForCurrentPage(new BrixPageParameters()); }