Wrong redirect after setting password

When I create a new user without setting the password, the new user receive a mail with the link for setting the password.

After setting the password and clicking the button, he is redirected to the link htpps://hostname/nextcloud without / so an error is displayed.

How can I check where such url is set???