add base64url encoding to redirects