diff --git a/components/party/PartyHead/index.tsx b/components/party/PartyHead/index.tsx index 22c3dc15..a471c5bb 100644 --- a/components/party/PartyHead/index.tsx +++ b/components/party/PartyHead/index.tsx @@ -19,7 +19,7 @@ const PartyHead = ({ party, meta }: Props) => { const router = useRouter() const locale = router.locale && ['en', 'ja'].includes(router.locale) ? router.locale : 'en' - const previewUrl = api.previewUrl(party.shortcode) + const previewUrl = api.previewUrl(party.id) return ( diff --git a/utils/api.tsx b/utils/api.tsx index 892212b5..8508e197 100644 --- a/utils/api.tsx +++ b/utils/api.tsx @@ -139,8 +139,8 @@ class Api { return axios.get(resourceUrl, params) } - previewUrl(shortcode: string): string { - return `${this.url}/parties/${shortcode}/preview` + previewUrl(id: string): string { + return `${this.url}/parties/${id}/preview` } raidGroups(params?: {}) {