Redirect with client baseUrl lost client context

Hi, in my custom user registration theme I use baseUrl to “Back to login”, but after clicking this URL, the user is redirected to the login page with the wrong clientId (default is set, i.e. account). Several clients use my keycloak. Is there any way to solve this problem?

My myclient client settings:
Root Url: $ {authBaseUrl},
Base Url: /realms/myrealm/account/

If I try to change baseURL to another one, e.g. account/login, I get an http 404 error after opening the login page.

I would be very grateful for your help.