Tagged Posts Displaying in Other Categories

As an example, I have a BLOG post tagged “blog” and it displays properly in the BLOG category on my web page. But it also displays in my Podcast category even though that post does not have a tag “podcast”. This is happening with several posts in one way or another across categories. (I’m referring to the links at the top of my page as categories.) My routes.yaml appear to be just fine. Any ideas as to why this is happening and how I might correct it? TIA

What theme? Any changes? What do your links look like? /tag/somethibg?

Source Theme (v1.4.1). No changes to the theme.

YAML File:

routes:
/: home

collections:
/blog/:
permalink: /blog/{slug}/
filter: tag:blog
template: index

/ai-watch-update/:
permalink: /ai-watch-update/{slug}/
filter: tag:ai-watch-update
template: index

/news-digest/:
permalink: /news-digest/{slug}/
filter: tag:news-digest
template: index

/bearnetai-viewpoint/:
permalink: /bearnetai-viewpoint/{slug}/
filter: tag:bearnetai-viewpoint
template: index

/podcasts/:
permalink: /podcasts/{slug}/
filter: tag:podcasts
template: index

/quick-fun-fact/:
permalink: /quick-fun-fact/{slug}/
filter: tag:quick-fun-fact
template: index

/ai-ethics-in-30-seconds/:
permalink: /ai-ethics-in-30-seconds/{slug}/
filter: tag:ai-ethics-in-30-seconds
template: index

/fact-bytes/:
permalink: /fact-bytes/{slug}/
filter: tag:fact-bytes
template: index

/ai-glossary/:
permalink: /ai-glossary/{slug}/
filter: tag:ai-glossary
template: index

/authors-publications/:
permalink: /authors-publications/{slug}/
filter: tag:authors-publications
template: index

/about/:
permalink: /about/{slug}/
filter: tag:about
template: index

/contact/:
permalink: /contact/{slug}/
filter: tag:contact
template: index

The index template is to blame. Use the tag template instead.

1 Like

I believe this is what you are talking about?: I’ll give it a try.

routes:
/: home

collections:
/blog/:
permalink: /blog/{slug}/
filter: tag:blog
template: tag

/ai-watch-update/:
permalink: /ai-watch-update/{slug}/
filter: tag:ai-watch-update
template: tag

/news-digest/:
permalink: /news-digest/{slug}/
filter: tag:news-digest
template: tag

/bearnetai-viewpoint/:
permalink: /bearnetai-viewpoint/{slug}/
filter: tag:bearnetai-viewpoint
template: tag

/podcasts/:
permalink: /podcasts/{slug}/
filter: tag:podcasts
template: tag

/quick-fun-fact/:
permalink: /quick-fun-fact/{slug}/
filter: tag:quick-fun-fact
template: tag

/ai-ethics-in-30-seconds/:
permalink: /ai-ethics-in-30-seconds/{slug}/
filter: tag:ai-ethics-in-30-seconds
template: tag

/fact-bytes/:
permalink: /fact-bytes/{slug}/
filter: tag:fact-bytes
template: tag

/ai-glossary/:
permalink: /ai-glossary/{slug}/
filter: tag:ai-glossary
template: tag

/authors-publications/:
permalink: /authors-publications/{slug}/
filter: tag:authors-publications
template: tag

/about/:
permalink: /about/{slug}/
filter: tag:about
template: tag

/contact/:
permalink: /contact/{slug}/
filter: tag:contact
template: tag

Cathy - thank you! That took care of it. Thing was driving me bananas :)

1 Like

Source’s index file makes a bunch of #get requests, that don’t (and can’t) respect routing. That was causing the problem.

1 Like