Website: remove client-side query string removal (#18336)

Changes:
- Removed the client-side browser history adjustment that was used to
clean up URLs with query strings on the /contact, /register, and
/fleetctl-preview pages.
This commit is contained in:
Eric 2024-04-16 15:55:42 -05:00 committed by GitHub
parent 999e200992
commit 80d072f1cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 14 deletions

View file

@ -82,9 +82,6 @@ parasails.registerPage('contact', {
}
}
}
if(window.location.search){// auto-clear query string (TODO: Document why we're doing this further. I think this shouldn't exist in the frontend code, instead in the hook. Because analytics corruption.)
window.history.replaceState({}, document.title, '/contact' );
}
},
mounted: async function() {
//…

View file

@ -30,11 +30,7 @@ parasails.registerPage('signup', {
// ║ ║╠╣ ║╣ ║ ╚╦╝║ ║ ║╣
// ╩═╝╩╚ ╚═╝╚═╝ ╩ ╚═╝╩═╝╚═╝
beforeMount: function() {
// Removing the query string for users redirected to this page by the /try-fleet/explore-data pages.
// FUTURE: remove this when that view-query-report is updated.
if(window.location.search){
window.history.replaceState({}, document.title, '/register' );
}
//…
},
mounted: async function() {
//…

View file

@ -10,12 +10,7 @@ parasails.registerPage('fleetctl-preview', {
// ║ ║╠╣ ║╣ ║ ╚╦╝║ ║ ║╣
// ╩═╝╩╚ ╚═╝╚═╝ ╩ ╚═╝╩═╝╚═╝
beforeMount: function() {
// If the user navigated to this page from the 'try it now' button, we'll strip the '?tryitnow' from the url.
if(window.location.search){
// https://caniuse.com/mdn-api_history_replacestate
window.history.replaceState({}, document.title, '/fleetctl-preview' );
}
//…
},
mounted: async function() {
//…