Next.js Discord

Discord Forum

notFound() is not replacing <meta robots>

Unanswered
Black Russian Terrier posted this in #help-forum
Open in Discord
Black Russian TerrierOP
I found out, that calling notFound() in an app page, is appendig the <meta name="robots" content="noindex"> in the head, as inteded. But it is not replacing an existing existing robots tag, I set in generateMetadata().

Am I missing something, or is this really a bug in next. I also already verifyed and the current canary v15.0.0-canary.72 still has this issue. Would be much handwork, to handle the robots in each generateMetadata() function on each page for all cases.

Any suggestions from you?

1 Reply

Black Russian TerrierOP