Hi everyone,
I’ve noticed a strange behavior with old topics that were automatically published from WordPress to Discourse (to be used as the comment section).
Normally, when a post is published this way, Discourse correctly adds the X-Robots-Tag: noindex to the HTTP header and sets the canonical URL pointing back to the WordPress blog post.
However, I discovered that older topics are losing these tags. The noindex header disappears, and the canonical tag is no longer present. Here are some examples of topics where this is happening:
- https://tecnoblog.net/comunidade/t/como-colocar-musica-no-status-do-whatsapp/73608
- https://tecnoblog.net/comunidade/t/como-compartilhar-a-internet-com-outro-celular-ou-pc/79015
- https://tecnoblog.net/comunidade/t/como-usar-a-netflix-em-outro-pais-viagem-ou-mudanca/74248
- https://tecnoblog.net/comunidade/t/como-usar-o-google-docs-7-super-dicas-e-truques-rapidos/76598
- https://tecnoblog.net/comunidade/t/como-atender-chamadas-do-seu-celular-android-no-windows-10/76615
Does anyone know a way to fix this issue?
Keep in mind that I have no way of knowing exactly how many topics have been affected so far, but it looks like it’s quite a few.
It would be great if there were a checkbox in the category (or tag?) settings that, when enabled, would automatically add noindex to all topics published under that category. Something like:
[ ] Hide Topics from this category in search results.