Fix admin-dir_permissions redirection when cannot write warning is shown.

This contribution is MIT licensed and released to public for usage without any restrictions.