Fix issue with share url links.

This commit is contained in:
Mike Cao 2020-09-26 00:26:59 -07:00
parent 35b921bdb4
commit 6ec13aef09
3 changed files with 5 additions and 3 deletions

View File

@ -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 }) {
<Link
key="back-button"
className={styles.backButton}
href="/website/[...id]"
href={router.pathname}
as={resolve({ view: undefined })}
icon={<Arrow />}
size="small"

View File

@ -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 && (
<Link
icon={<Arrow />}
href="/website/[...id]"
href={router.pathname}
as={resolve({ view: type })}
size="small"
iconRight

View File

@ -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 <mike@mikecao.com>",
"license": "MIT",