next-plugin-preact icon indicating copy to clipboard operation
next-plugin-preact copied to clipboard

Duplicate <link rel="canonical" /> when use in nextjs

Open ekanant opened this issue 3 years ago • 0 comments

I create a website by using next.js and usenext-plugin-preact for smaller bundle size. I put a <link rel="canonical" key="canonical" href="this is from _app.tsx"/> in _app.tsx and put it again on some specific page <link rel="canonical" key="canonical" href="this is from special page"/> it print out duplicate canonical.

I open an issue to next.js repo but they said it seem to be issue with next-plugin-preact.

I create a repo with duplicate result here https://github.com/ekanant/nextjs-duplicate-in-head.

ekanant avatar Jan 03 '22 15:01 ekanant