From 39f9c50cda70f878fe267a955e05f37f1a9458eb Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 19 Dec 2023 17:52:38 -0600 Subject: [PATCH] Website: Update /try-fleet/explore-data redirect (#15739) Closes: #15728 Changes: - Updated `view-query-report.js` to redirect non-logged in users who visit `/try-fleet/explore-data/*` to `/try-fleet/register` --- website/api/controllers/try-fleet/view-query-report.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/api/controllers/try-fleet/view-query-report.js b/website/api/controllers/try-fleet/view-query-report.js index 735f2e4c0e..1eb7e322a2 100644 --- a/website/api/controllers/try-fleet/view-query-report.js +++ b/website/api/controllers/try-fleet/view-query-report.js @@ -54,9 +54,9 @@ module.exports = { throw {badConfig: 'builtStaticContent.osqueryTables'}; } - // If the requesting user is not logged in, redirect them to the /try-fleet/login page with the specified hostPlatform added as a query parameter. + // If the requesting user is not logged in, redirect them to the /try-fleet/register page with the specified hostPlatform added as a query parameter. if(!this.req.me){ - throw {redirect: `/try-fleet/login?targetPlatform=${encodeURIComponent(hostPlatform)}` }; + throw {redirect: `/try-fleet/register?targetPlatform=${encodeURIComponent(hostPlatform)}` }; } if(!sails.config.custom.queryIdsByTableName){