mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
Website: Remove utm parameter stripping for now (#19425)
This commit is contained in:
parent
4af00d098e
commit
3df7a9232a
1 changed files with 6 additions and 1 deletions
7
website/api/hooks/custom/index.js
vendored
7
website/api/hooks/custom/index.js
vendored
|
|
@ -154,7 +154,12 @@ will be disabled and/or hidden in the UI.
|
|||
// https://fleetdm.com/device-management?utm_content=mdm
|
||||
if (['clear','eo-security', 'eo-it', 'mdm', 'vm'].includes(req.param('utm_content'))) {
|
||||
req.session.primaryBuyingSituation = req.param('utm_content') === 'clear' ? undefined : req.param('utm_content');
|
||||
return res.redirect(req.path);// « auto-redirect without querystring to make it prettier in the URL bar.
|
||||
// FUTURE: reimplement the following (auto-redirect without querystring to make it prettier in the URL bar), but do it in the client-side JS
|
||||
// using whatever that poppushstateblah thing is that makes it so you can change the URL bar from the browser-side code without screwing up
|
||||
// the history stack (i.e. back button)
|
||||
// ```
|
||||
// return res.redirect(req.path);
|
||||
// ```
|
||||
}//fi
|
||||
|
||||
if (req.method === 'GET' || req.method === 'HEAD') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue