Social login cancel redirect url

Hi all,

We use keycloak to login with social media by giving redirect url as below.


When user sign in with linkedin successfully, keycloak redirects to my site (localhost:4000/sso-callback)

The problem is: if user clicks cancel button in linkedin, it redirects to keycloak. We don’t want to show keycloak’s page in this situation.
Is there a way to redirect it to my website when social login cancelled, example (localhost:4000/cancelled)