Fixed a bug causing the form to redirect to nonexistant pages when submitted from a child page.