add strings to permalink structure close #129

This commit is contained in:
Matt Walsh
2025-07-30 22:29:20 -05:00
parent 831e1680e9
commit d85a5ed3b1

View File

@@ -34,10 +34,17 @@ const createLink = async (e) => {
// get all select boxes
elemForEach('select', (elem) => {
if (elem?.id) {
queryStringElements[elem.id] = elem?.value ?? 0;
queryStringElements[elem.id] = encodeURIComponent(elem?.value ?? '');
}
});
// get all text boxes
elemForEach('input[type=text]', ((elem) => {
if (elem?.id) {
queryStringElements[elem.id] = elem?.value ?? 0;
}
}));
// add the location string
queryStringElements.latLonQuery = localStorage.getItem('latLonQuery');
queryStringElements.latLon = localStorage.getItem('latLon');