From d3092bbc640ebd8e92c13476f0ca8772b98d425e Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 14 Jul 2026 14:08:17 -0500 Subject: [PATCH] Website: update /gitops-workshop redirect (#49283) Changes: - updated the route for /gitops-workshop to include the query string when users are redirected to the /workshops page. ## Summary by CodeRabbit * **Bug Fixes** * Updated the legacy GitOps Workshop link to redirect permanently to the workshops page. * Preserved query parameters during the redirect for a more consistent navigation experience. --- website/config/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/config/routes.js b/website/config/routes.js index 609641286f..d061e0eda2 100644 --- a/website/config/routes.js +++ b/website/config/routes.js @@ -1148,7 +1148,7 @@ module.exports.routes = { 'GET /autonomous-endpoint-management': (req, res) => { let originalQueryString = req.url.match(/\?(.+)$/) ? '?' + req.url.match(/\?(.+)$/)[1] : ''; return res.redirect(301, sails.config.custom.baseUrl + '/lp/autonomous-endpoint-management' + originalQueryString); }, 'GET /imagine/open-source': (req, res) => { let originalQueryString = req.url.match(/\?(.+)$/) ? '?' + req.url.match(/\?(.+)$/)[1] : ''; return res.redirect(301, sails.config.custom.baseUrl + '/lp/open-source' + originalQueryString); }, 'GET /orchestration': '/visibility-and-reporting', - 'GET /gitops-workshop': '/workshops', + 'GET /gitops-workshop': (req, res) => { let originalQueryString = req.url.match(/\?(.+)$/) ? '?' + req.url.match(/\?(.+)$/)[1] : ''; return res.redirect(301, sails.config.custom.baseUrl + '/workshops' + originalQueryString); }, 'GET /gitops-workshops': '/workshops', // ╔╦╗╦╔═╗╔═╗ ╦═╗╔═╗╔╦╗╦╦═╗╔═╗╔═╗╔╦╗╔═╗ ┬ ╔╦╗╔═╗╦ ╦╔╗╔╦ ╔═╗╔═╗╔╦╗╔═╗ // ║║║║╚═╗║ ╠╦╝║╣ ║║║╠╦╝║╣ ║ ║ ╚═╗ ┌┼─ ║║║ ║║║║║║║║ ║ ║╠═╣ ║║╚═╗