core: removed debug from z_pivot_rsc

(cherry picked from commit c03f43aa118cd3da1666aeadae0c0f498049b8a3)
core: fix problem where the custom redirects form was not saved

(cherry picked from commit b0b570b9d608ba7d42614e1c662a8887b38a76b0)