0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00
ghost/test/unit
Fabien 'egg' O'Carroll e60806de45
Redirected Members to previous post/page upon sign-in
refs https://github.com/TryGhost/Team/issues/1174
refs https://github.com/TryGhost/Members/pull/408

When logged out members navigate a site and want to interact with, for example
comments, they are redirected to the homepage after sign-in with the magic link,
this is disorientating, and means they then need to navigate back to the content
they were interacting with.

This change means that sign-in's will be redirected to the page from which they 
were initiated, allowing a more streamlined flow for logged out members wanting
to add comments.

We've restricted the redirect to URI's which are on the same domain as the site,
and we also do a relative redirect, this is to ensure that a malicious actor does not
send magic links which redirect off-site and leak authentication details
2022-07-15 11:55:09 +01:00
..
api 🐛 Fixed API excerpt field issue (#15005) 2022-07-06 17:57:04 +02:00
frontend Member Counter template helpers (#15013) 2022-07-14 10:10:02 +02:00
server Redirected Members to previous post/page upon sign-in 2022-07-15 11:55:09 +01:00
shared Added initial auth frame 2022-07-12 10:24:02 +02:00