fixes #319 - make page api send proper redirects