Fixes route redirect for editing a page