Next-Prev not working in collection

Hello,

I’m having an issue with {{#next_post in="primary_tag"}} in a custom collection

    collections:
      /:
        permalink: /{slug}/
        template: index
        filter: tag:-[hash-podcast]
      /podcast/:
        permalink: /podcast/{slug}/
        filter: tag:[hash-podcast]

When I’m in /podcast/ It only gives me previous and next post from the / collection.
here is a link to the website for example: https://souslapluie.fr/podcast/on-lance-notre-podcast/

There shouldn’t be anything in the next prev because there is only one post and with only an internal tag #podcast

For more details: https://github.com/StanGirard/SousLaPluie/blob/master/custom-podcast.hbs

Didn’t have this issue before using collections. did i do something wrong ?

Thanks

I think the issue you’re facing is due to the non-existence of “dynamic routing for next/previous post helper”. Please vote if you’d like it implemented :slightly_smiling_face:

1 Like