Fix database based static page creation / editing

Fixup 89900f1e88fc70ec70f95d7619cba1657bb9258c which accidently broke
database based static page creation / editing by making URLs coherently
(no trailing slash). This now fixes the corresponding controllers.