How do i stop the redirect after password reset is done

i have 2 online stores. both stores use the trademark theme

the theme was transferred from the first store to the second store. i discovered a problem with the password reset of the second store. if you type in the new password and you submit the form then the password is getting changed and you will get signed into the second store but after that it automatically redirects to the first store. i checked the coding of the password reset form in the second store. i couldn’t find anything which is redirecting to the first store

how do i stop it from redirecting?