{"id":15586667,"url":"https://github.com/innei/nextjs-metadata-url-encode-reproduction","last_synced_at":"2025-06-10T16:41:05.169Z","repository":{"id":180867868,"uuid":"665621710","full_name":"Innei/nextjs-metadata-url-encode-reproduction","owner":"Innei","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-25T09:05:05.000Z","size":5314,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-03T23:49:04.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nextjs-metadata-url-encode-reproduction.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Innei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-12T15:56:20.000Z","updated_at":"2023-07-13T05:43:44.000Z","dependencies_parsed_at":"2024-10-02T21:41:05.366Z","dependency_job_id":"1b4de3c5-8237-48f9-b8c5-a4b6fde7ec27","html_url":"https://github.com/Innei/nextjs-metadata-url-encode-reproduction","commit_stats":null,"previous_names":["innei/nextjs-metadata-url-encode-reproduction"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fnextjs-metadata-url-encode-reproduction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fnextjs-metadata-url-encode-reproduction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fnextjs-metadata-url-encode-reproduction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fnextjs-metadata-url-encode-reproduction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Innei","download_url":"https://codeload.github.com/Innei/nextjs-metadata-url-encode-reproduction/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162147,"owners_count":20733357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T21:40:57.135Z","updated_at":"2025-03-29T09:16:36.158Z","avatar_url":"https://github.com/Innei.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Next.js metadata url will encodeURLComponent unexpectedly.\n\n\n```ts\n\nexport const generateMetadata = async (): Promise\u003cMetadata\u003e =\u003e {\n  const ogUrl = new URL('http://localhost:3000/og.png')\n\n  ogUrl.searchParams.set('title', 'Nextjs')\n  ogUrl.searchParams.set('description', 'description - Nextjs')\n\n  return {\n    title: 'Nextjs',\n    openGraph: {\n      images: ogUrl,\n    },\n  }\n}\n```\n\nand generate the code of `\u003cmeta\u003e` tag.\n\n\n```\n\u003cmeta property=\"og:image\" content=\"http://localhost:3000/og.png?title=Nextjs\u0026amp;description=description+-+Nextjs\"/\u003e\n```\n\nThe `\u0026` will encode to `\u0026amp;` unexpected.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fnextjs-metadata-url-encode-reproduction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnei%2Fnextjs-metadata-url-encode-reproduction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fnextjs-metadata-url-encode-reproduction/lists"}