Hello,
I am using Ghost v3 and I am trying to get my head around dynamic routing. My goal is to create a route where all posts of a specifc year are listed. I’ve come up with this routes config:
routes:
/archive/2018/:
template: archive
controller: channel
filter: "published_at:>'2017-12-31'+published_at:<'2019-01-01'"
collections:
/:
permalink: /{slug}/
template: index
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
Now, when I open “/archive/2018/” I get redirected to the first post of my blog.
I played a little bit around and found out that the following config works:
routes:
/y/2018/:
template: archive
controller: channel
filter: "published_at:>'2017-12-31'+published_at:<'2019-01-01'"
Why is /y/2018 working and /archive/2018 not? Please help!