Keycloak JavaScript adapter redirects to 404 URL after login

I’m using the Keycloak JavaScript adapter (keycloak-js@16.1.1) to authenticate users in the frontend. (Quasar 2 with Vue 3 and Vue Router 4). Basically this works fine but I have some trouble with the login workflow.

As soon as the user has entered the credentials inn the form, Keycloak redirects the users to an URL like this:


This leads to a 404 in the frontend code because there is no matching route for such an URL.

Do I have to take care of the parameters passed in the redirect URL? My understand was, that the Keycloak adapter handles this.