From 6ec13aef0924e3885c1ad0f18c33850eec85514a Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sat, 26 Sep 2020 00:26:59 -0700 Subject: [PATCH] Fix issue with share url links. --- components/WebsiteDetails.js | 3 ++- components/metrics/MetricsTable.js | 3 ++- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/WebsiteDetails.js b/components/WebsiteDetails.js index f24332ba..b38f55de 100644 --- a/components/WebsiteDetails.js +++ b/components/WebsiteDetails.js @@ -37,6 +37,7 @@ export default function WebsiteDetails({ websiteId, token }) { const [eventsData, setEventsData] = useState(); const { resolve, + router, query: { view }, } = usePageQuery(); @@ -44,7 +45,7 @@ export default function WebsiteDetails({ websiteId, token }) { } size="small" diff --git a/components/metrics/MetricsTable.js b/components/metrics/MetricsTable.js index 1f2145f7..3ac8a395 100644 --- a/components/metrics/MetricsTable.js +++ b/components/metrics/MetricsTable.js @@ -32,6 +32,7 @@ export default function MetricsTable({ const { startDate, endDate, modified } = dateRange; const { resolve, + router, query: { url }, } = usePageQuery(); @@ -108,7 +109,7 @@ export default function MetricsTable({ {limit && ( } - href="/website/[...id]" + href={router.pathname} as={resolve({ view: type })} size="small" iconRight diff --git a/package.json b/package.json index cd7843f0..ed4e470d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "umami", - "version": "0.54.0", + "version": "0.55.0", "description": "A simple, fast, website analytics alternative to Google Analytics. ", "author": "Mike Cao ", "license": "MIT",