Added return on pages redirect.