diff --git a/src/app/(default)/area/[[...slug]]/page.tsx b/src/app/(default)/area/[[...slug]]/page.tsx index 3a45406cc..0e1c83b4e 100644 --- a/src/app/(default)/area/[[...slug]]/page.tsx +++ b/src/app/(default)/area/[[...slug]]/page.tsx @@ -22,7 +22,7 @@ import { PageWithCatchAllUuidProps, PageSlugType } from '@/js/types/pages' /** * Page cache settings */ -export const revalidate = 300 // 5 mins +export const revalidate = 3600 // 1 hr export const fetchCache = 'force-no-store' // opt out of Nextjs version of 'fetch' /** diff --git a/src/app/(default)/components/DesktopHeader.tsx b/src/app/(default)/components/DesktopHeader.tsx index 7311ae42b..e7b00b140 100644 --- a/src/app/(default)/components/DesktopHeader.tsx +++ b/src/app/(default)/components/DesktopHeader.tsx @@ -115,6 +115,7 @@ const QuickLinks: React.FC = () => { {icon}{label} diff --git a/src/components/media/Tag.tsx b/src/components/media/Tag.tsx index 1892e631f..a2c2d1857 100644 --- a/src/components/media/Tag.tsx +++ b/src/components/media/Tag.tsx @@ -6,7 +6,7 @@ import clx from 'classnames' import { EntityTag, TagTargetType } from '../../js/types' import { OnDeleteCallback } from './TagList' import { MouseEventHandler } from 'react' -import { getAreaPageFriendlyUrl } from '@/js/utils' +import { getAreaPageFriendlyUrl, getClimbPageFriendlyUrl } from '@/js/utils' interface PhotoTagProps { mediaId: string @@ -68,7 +68,7 @@ export const resolver = (props: EntityTag): [string, string] | [null, null] => { const { targetId: id, climbName, areaName, type } = props switch (type) { case TagTargetType.climb: { - return [`/climb/${id}`, climbName ?? ''] + return [getClimbPageFriendlyUrl(id, climbName ?? ''), climbName ?? ''] } case TagTargetType.area: { return [getAreaPageFriendlyUrl(id, areaName), areaName]