As promised, here it is : Complete guide: Redirect users to the page they were before signing up/signing in + use case