Skip to content

Commit

Permalink
Merge pull request #1090 from prezly/fix/care-4313-all-licenses-media…
Browse files Browse the repository at this point in the history
…-gallery-url-copy-button-broken

[CARE-4313] Fix Gallery URL copy button
  • Loading branch information
e1himself authored Feb 1, 2024
2 parents 3038876 + 9c95d4b commit 664adb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/[localeCode]/media/album/[uuid]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {

export default async function AlbumPage({ params }: Props) {
const { gallery } = await resolve(params);
const { generateUrl } = await routing();
const { generateAbsoluteUrl } = await routing();

return (
<>
<BroadcastTranslations routeName="mediaGallery" params={{ uuid: gallery.uuid }} />
<Gallery
localeCode={params.localeCode}
gallery={gallery}
href={generateUrl('mediaGallery', { uuid: gallery.uuid })}
href={generateAbsoluteUrl('mediaGallery', { uuid: gallery.uuid })}
/>
</>
);
Expand Down

0 comments on commit 664adb2

Please sign in to comment.