Skip to content

Commit

Permalink
[CARE-4313] Fix Copy button copying relative page URL instead of abso…
Browse files Browse the repository at this point in the history
…lute
  • Loading branch information
e1himself committed Feb 1, 2024
1 parent 3038876 commit 9c95d4b
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 9c95d4b

Please sign in to comment.