Ghost/ghost/core/test/unit
Simon Backx d0042b550a
Fixed redirecting back to account home after sign in in Portal (#16487)
refs https://github.com/TryGhost/Team/issues/2674

When going to /#/portal/account when not signed in, you are redirected
to the login page. But once signed in, you aren't redirected back to the
account page. This fixes this issue by adding an extra and optional
redirect parameter when requesting a magic token via email.

This new parameter allows to override the default behaviour of using the
Referer HTTP header, which doesn't include the hash/fragment part of the
URL.

The referrer is already restricted to only allow redirects to the site,
not external URLs.
2023-04-04 18:07:37 +02:00
..
api/canary Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
frontend Added i18n labs flag 2023-03-30 18:15:57 +02:00
server Fixed redirecting back to account home after sign in in Portal (#16487) 2023-04-04 18:07:37 +02:00
shared Removed all unused variables from test files 2023-03-10 14:29:55 +01:00