Keycloak-14.0.0 does not respect kc_locale parameter

Steps to Reproduce

set up a realm with keycloak
create custom theme with new excutionaction.ftl
from keycloak add fr, en as supported language
add link to navigate to forget password page in case the url is expired
If the excutionActionUrl is expired the user should navigate to the reset password page that is provided in the email but when he does the language does not change and when he try to change the language it does not changes.
however if he navigated to the login page and clicks on forget password the same page he was on the language can be changed then.
i need to allow the user to change the language when he navigates directly to forget password page