mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
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:
parent
999e200992
commit
80d072f1cc
3 changed files with 2 additions and 14 deletions
3
website/assets/js/pages/contact.page.js
vendored
3
website/assets/js/pages/contact.page.js
vendored
|
|
@ -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() {
|
||||
//…
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
//…
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
//…
|
||||
|
|
|
|||
Loading…
Reference in a new issue