Fix db based staticpage submit link

Everything will be better once #676 is done.