Skip to content

Commit

Permalink
fix(app-Tag): decodeURI tag in metadata generation (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Apr 16, 2024
1 parent 7279565 commit 9cc540f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/tag/[tag]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function generateStaticParams() {
}

export async function generateMetadata({ params }: { params: QueryParams }): Promise<Metadata> {
return getMetadata({ title: params.tag })
return getMetadata({ title: decodeURI(params.tag) })
}

export default async function Tags({ params }: { params: QueryParams }) {
Expand Down

0 comments on commit 9cc540f

Please sign in to comment.