next-seo icon indicating copy to clipboard operation
next-seo copied to clipboard

Fix default robots overriding

Open yukukotani opened this issue 3 years ago • 7 comments

Description of Change(s):

Fixes #727.

dangerouslySetAllPagesToNoIndex in <DefaultSeo> had been having a priority over noindex: false in <NextSeo> of each page component. nofollow is also the same.

Also, the test case have expected wrong result. This PR fixes it.

yukukotani avatar Apr 23 '21 02:04 yukukotani

@Monchi any chance of updating the branch? This fix would be great if could be merged some day.

rolandtoth avatar Jan 05 '22 21:01 rolandtoth

@rolandtoth Sure. I've updated and published a new patched version. https://www.npmjs.com/package/next-seo-yuku-fork

yukukotani avatar Jan 06 '22 11:01 yukukotani

Hey @Monchi, thank you for the contribution 🙏 😄

next-seo was just re-written for V5, would you mind double checking your change is expected and updating the conflict. Apologies about the delay.

garmeeh avatar Jan 29 '22 08:01 garmeeh

@garmeeh Sure, wait a moment!

yukukotani avatar Jan 29 '22 08:01 yukukotani

@garmeeh I've rebased and checked the behavior. Please take a look.

yukukotani avatar Jan 29 '22 08:01 yukukotani

@garmeeh Ready for review

yukukotani avatar Mar 14 '22 06:03 yukukotani

@garmeeh Any news? I think @nyedidikeke's review is not a problem. Any other change requests are welcome.

yukukotani avatar Apr 05 '22 06:04 yukukotani

when this PR will get merged ? I'm facing the same issue and currently on latest version of next-seo

MAfzalKhan1997 avatar Mar 07 '23 14:03 MAfzalKhan1997

@yukukotani merged this today and spent a bit of time looking through it. The tests are failing on it.

The tests were failing on your pull request due to unrelated package issues. I opened an up to date branch pull request here to allow CI to run and tests did fail: https://github.com/garmeeh/next-seo/pull/1194

garmeeh avatar Apr 01 '23 18:04 garmeeh

While going through remaining pull requests, turns out #1062 had an almost identical change as yours. Tests ended passing on this pull request. I have released this change now. Thanks for all your effort on this and apologies on not so great attention on this one.

This has been released in v6 now

garmeeh avatar Apr 01 '23 19:04 garmeeh