Update password action triggers login

Hi, I’m using the following link to initiate the password change:

http://localhost:8080/realms/myreralm/protocol/openid-connect/auth?response_type=code&client_id=myclient&scope=openid&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fsettings&kc_action=UPDATE_PASSWORD

But every time I press the button, I’m getting the login screen. When I log in, I can change the password. Is this intentional, or am I missing some configuration?

Can I set it up so that I directly have to enter the old password and the new password twice? Why doesn’t Keycloak recognize that I’m already logged in?