Support AJAX redirection if the page is locked