Fix overly-sticky date in query parameters (#470)

The date param was sticking around even when not specified
resulting in Last Month -> This Month still having last month's
date.

Fixes #439
pull/477/head
Mackenzie 6 years ago committed by GitHub
parent 9c4493de66
commit 3524d13c70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,6 +26,7 @@ All notable changes to this project will be documented in this file.
- Show correct stats when goal filter is combined with source plausible/analytics#374
- Going back in history now correctly resets the period filter plausible/analytics#408
- Fix URL decoding in query parameters plausible/analytics#416
- Fix overly-sticky date in query parameters plausible/analytics/#439
### Security
- Do not run the plausible Docker container as root plausible/analytics#362

@ -45,6 +45,7 @@ export function parseQuery(querystring, site) {
function generateQueryString(data) {
const query = new URLSearchParams(window.location.search)
query.delete("date");
Object.keys(data).forEach(key => {
if (!data[key]) {
query.delete(key)

Loading…
Cancel
Save