Ghost/ghost/core/test/unit/server/services
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
..
adapter-manager Added JSDoc to adapter options resolver 2022-09-06 17:51:57 +08:00
api-version-compatibility Added Content-Version header to all API requests 2023-01-18 08:38:07 +01:00
auth Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
custom-redirects Renamed redirects to custom-redirects 2022-09-14 13:24:17 -04:00
frontend-data-service Prevent error logs from occuring in Ghost unit test suite 2023-03-01 16:37:46 +00:00
link-tracking Added endpoint for fixing newsletter links 2022-10-20 17:50:02 +05:30
mail Fixed missing stub for DNS in GhostMailer Direct tests 2023-03-17 18:16:30 +01:00
members Fixed redirecting back to account home after sign in in Portal (#16487) 2023-04-04 18:07:37 +02:00
mentions Prevent error logs from occuring in Ghost unit test suite 2023-03-01 16:37:46 +00:00
milestones Added BookshelfMilestoneRepository implementation (#16305) 2023-02-22 15:53:29 +02:00
newsletters Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
notifications Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
oembed Fixed errors being logged by unit tests 2023-03-22 16:25:23 +00:00
permissions Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
route-settings Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
settings Added email snapshots to settings BREAD service test 2023-01-18 14:19:27 +01:00
settings-helpers Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
slack-notifications Moved Milestone emails to GA 2023-03-23 17:35:23 +00:00
staff Moved Milestone emails to GA 2023-03-23 17:35:23 +00:00
stripe Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
themes Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
url Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
users Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
webhooks Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
labs.test.js Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
limits.test.js Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
slack.test.js Prevent error logs from occuring in Ghost unit test suite 2023-03-01 16:37:46 +00:00
xmlrpc.test.js Prevent xmlprc tests from outputting errors for failure cases 2023-02-28 11:14:11 +00:00