Redirect to original post upon signin

When a new user registers on my site and click on the magic linke, they are directed to homepage.

How can I ensure that the link redirects them to the page where they have signed up?

Can you share your Ghost version? In recent versions of Ghost, this should be supported