* @throws BrixException if the current request was not for a brix page
*/
public static String urlForCurrentPage(BrixPageParameters params) {
IRequestHandler target = new BrixNodeRequestHandler(getCurrentPage(), params);
String url = RequestCycle.get().urlFor(target).toString();
target.detach(RequestCycle.get());
return url;
}
/**
* Returns current brix page being processed. Must only be called within a wicket request.