public final void redirectTo(final Page page)
{
String redirectUrl = null;
// Check if use serverside response for client side redirects
IRequestCycleSettings settings = application.getRequestCycleSettings();
if ((settings.getRenderStrategy() == IRequestCycleSettings.REDIRECT_TO_BUFFER) &&
(application instanceof WebApplication) && !(getWebRequest().isAjax()))
{
// remember the current response
final WebResponse currentResponse = getWebResponse();
try