Fix url pattern for device unregistration.

Without this fix, registration was working, but when unregistration was tried, it sent 302 redirect to keycloak.