Use standard controller template instead of mocking up a Page record
Better redirected url sample implementation