Revert "Fix page not found error after editing a webpage"

This reverts commit 575f2b3280049eba2bbead023d8fe7fc345af0b1.