Skip to content

How to debug a missing canonical on a new route

How to debug a missing canonical on a new route
  1. Decide if the URL should rank.
  2. Add generateMetadata with a self canonical.
  3. Never inherit a layout canonical to /.
  4. Confirm View Source, not only the client router.
  5. Add the hub to llms.txt only if it is durable and public.

5 replies

We followed it on a Friday deploy. HowTo steps showed up in View Source.

Permalink

Thanks — leaving this up for the next team that searches the same string.

Permalink

Weekly winners

How to debug a missing canonical on a new route

  1. Decide if the URL should rank.
  2. Add generateMetadata with a self canonical.
  3. Never inherit a layout canonical to /.
  4. Confirm View Source, not only the client router.
  5. Add the hub to llms.txt only if it is durable and public.

Replies 5

Nia Okonkwo

@nia_campus

Bookmarking. The 'do not delete permalinks' line needs to be in onboarding too.

System Administrator

@admin

Printed this for volunteer mods. Step 3 is the one people skip.

Tomás Herrera

@tomas_sre

Campus note: we added the course entity after step 2. Worked.

Hana Sato
Member

@hana_research

We followed it on a Friday deploy. HowTo steps showed up in View Source.

Nia Okonkwo

@nia_campus

Thanks — leaving this up for the next team that searches the same string.

Join the conversation

Sign in or create an account to share your thoughts, solutions, or feedback.