Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Fix URLs breaking on date picker navigation (#4323)
hq18733294d1b75
diff --git a/assets/js/dashboard/query.js b/assets/js/dashboard/query.jsindex 4a61841e98..cf702243af 100644--- a/assets/js/dashboard/query.js+++ b/assets/js/dashboard/query.js@@ -52,7 +52,7 @@ export function navigateToQuery(history, queryFrom, newData) {// if we update any data that we store in localstorage, make sure going back in history will// revert themif (newData.period && newData.period !== queryFrom.period) {- history.replace({ search: updatedQuery({ period: queryFrom.period}) })+ history.replace({ search: updatedQuery({ period: queryFrom.period }) })}// then push the new query to the history@@ -135,7 +135,7 @@ export function filtersBackwardsCompatibilityRedirect() {}function QueryLink(props) {- const {query, history, to, className, children} = props+ const { query, history, to, className, children } = propsfunction onClick(e) {e.preventDefault()@@ -167,7 +167,7 @@ function QueryButton({ history, query, to, disabled, className, children, onClicevent.preventDefault()navigateToQuery(history, query, to)if (onClick) onClick(event)- history.push({ pathname: window.location.pathname, search: updatedQuery(to) })+ history.push({ search: updatedQuery(to) })}}type="button"disabled={disabled}