this(pageClass, null);
}
public <C extends Page> GitblitRedirectException(Class<C> pageClass, PageParameters params) {
RequestCycle cycle = RequestCycle.get();
String relativeUrl = cycle.urlFor(pageClass, params).toString();
String absoluteUrl = RequestUtils.toAbsolutePath(relativeUrl);
cycle.setRequestTarget(new RedirectRequestTarget(absoluteUrl));
cycle.setRedirect(true);
}
}