Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ekanant opened this issue Jan 3, 2022 · 0 comments
Open

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

ekanant opened this issue Jan 3, 2022 · 0 comments

Comments

@ekanant
Copy link

ekanant commented Jan 3, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant