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

Is there a way to exclude the next seo component from certain page? #1179

Open
chea1tei opened this issue Mar 1, 2023 · 2 comments
Open

Comments

@chea1tei
Copy link

chea1tei commented Mar 1, 2023

Hi,

Is there a way to exclude the next seo component from certain page? We are currently placing the component under _app.js file and its pulling for every page. If there is a certain page we want to exclude from, is there away for it?

@neilhsmith
Copy link
Contributor

I would lean on React for that. Create a wrapper component which checks the path and conditionally renders the NextSeo component.

@GonzaloZiadi
Copy link

Yup, I used conditional rendering to work around this issue.

See sample code here: #934 (comment).

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

3 participants