'Redirecting to specific post / URL after Login

I have a web app where users can look at different postings and apply to the ones they want.

However when a user is not authenticated and he presses on the "Apply" Button, he then gets redirected to the Login window. After Logging in he SHOULD get redirected to the post he pressed the "Apply" Button.

Right now he just gets redirected, as normal, to the overview of posts.

I have no idea how to google stuff on it, since I don't know what this kind of redirection is called.

Any help appreciated



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source