Odd behavior with routing

Issue Summary

  • I have created several place holder blog posts. When I try to navigate to them I am rerouted to the secondary landing page I have created. When I try to visit the post from the admin side I am also rerouted to the secondary landing page.

Steps to Reproduce

I created a screen recording of what is going on here

To summarize the video I built a home landing page with two links. When I click the “Novel” link it takes me to a page with another link to “Part One”, which takes you to a page where all the posts with the tag “Part One” are listed with hyperlinks. When you click those posts I would like to view said posts. However, it takes me right back to the previous page. When I attempt to view the posts from the Ghost Admin side it takes me to the /novel page and not the post’s page.


Setup information

Ghost Version
I am using the current version of Casper

Here is the contents of my routes.yaml file:

routes:
  /: home

collections:
  /novel/:
    permalink: /novel/

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

This is my first time building a Ghost Theme so I am sure I have made a trivial mistake but I cannot figure out where I went wrong. Any pointers would be greatly appreciated.

SOLVED:

I reverted the routes.yaml file to:

routes:
  /: home

collections:
  /:
    permalink: /{slug}/
    template: index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

Then I created a page titled Novel in my Ghost Admin with a link to the tag I needed. Ran ghost restart and everything was working right