# Routes and Collections - No SEO data and template conflicts

**URL:** <https://forum.ghost.org/t/routes-and-collections-no-seo-data-and-template-conflicts/8883>\
**Category:** Developer help\
**Created:** [September 3, 2019, 4:12am UTC](https://forum.ghost.org/t/routes-and-collections-no-seo-data-and-template-conflicts/8883 "2019-09-03T04:12:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewmc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrewmc/32/3108_2.png) [@andrewmc](https://forum.ghost.org/u/andrewmc)\
**Post date:** [September 3, 2019, 4:12am UTC](https://forum.ghost.org/t/routes-and-collections-no-seo-data-and-template-conflicts/8883/1 "2019-09-03T04:12:04Z")

</div>

This is a little complicated to explain, so please bare with me.

I have some blog posts about schools. I have these setup to display in a collection called schools. This is the routes file:

```
collections:
  /schools/:
    permalink: /schools/{slug}/
    template: schools
    filter: tag:schools
    order: title ASC 

```

This all works great, but the collection doesn’t have any meta content, facebook opengraph data or anything that can be searched by crawlers.

**Is this the correct way that Collections work? Do they really not have any data for Google to use?**

To help solve this problem, I found what I thought was a solution.

> <https://stackoverflow.com/questions/54498762/how-do-i-set-ghost-blog-custom-routes-yaml-collection-title-meta-description-i/54788950#54788950>

Based on this idea, I updated my routes file to be:

```
routes:
  /schools/:
    controller: channel
    template: schools
    filter: tag:schools
    data: page.schools

collections:
  /schools/:
    permalink: /schools/{slug}/
    template: schools
    filter: tag:schools
    order: title ASC 

```

This actually fixed the SEO issue and the title, **but it completely breaks the load more** functionality so my page can only load 8 posts and thats it. The whole pagination/load more functionality doesn’t work when I add the routes option above.

Does anyone have any ideas how I can fix this issue and get Collections to show SEO data and not break everything.

cheers  
Andrew

---

<div class="post-metadata">

**Author:** ![andrewmc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrewmc/32/3108_2.png) [@andrewmc](https://forum.ghost.org/u/andrewmc)\
**Post date:** [September 3, 2019, 4:55am UTC](https://forum.ghost.org/t/routes-and-collections-no-seo-data-and-template-conflicts/8883/2 "2019-09-03T04:55:27Z")

</div>

Not sure if this is going to help, but I tried accessing the page data directly from the collection, but it still breaks the ability to load more posts. Absolutely devastated about this. 1 months work and what is the point if Google can’t find the page…

```
collections:
  /schools/:
    permalink: /schools/{slug}/
    template: schools
    filter: tag:schools
    order: title ASC 
    data: page.schools
```

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [September 3, 2019, 10:58am UTC](https://forum.ghost.org/t/routes-and-collections-no-seo-data-and-template-conflicts/8883/3 "2019-09-03T10:58:40Z")

</div>

Hi @andrewmc, sorry you’re having trouble with this. Couple of questions:

- Do you have an example of this issue live somewhere?
- Is this ‘school’ collection made up of pages and not posts?

Edit: You should probably remove the routes definition as it might be conflicting with the collection definition. More info can be found here:

> **[Ghost Themes - Dynamic URLs & Routing](https://ghost.org/docs/themes/routing/)**
>
> Build dedicated URL structures using Ghost's dynamic routing system, for custom homepages, podcasts, categories and more.

---

<div class="post-metadata">

**Author:** ![andrewmc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrewmc/32/3108_2.png) [@andrewmc](https://forum.ghost.org/u/andrewmc)\
**Post date:** [September 3, 2019, 12:54pm UTC](https://forum.ghost.org/t/routes-and-collections-no-seo-data-and-template-conflicts/8883/4 "2019-09-03T12:54:58Z")

</div>

Thanks for your reply @DavidDarnes

1. Unfortunately site is local at the moment.
2. all posts.

At the moment the only way I can resolve the issues is to create a custom default.hbs file. This allows me to hardcode the page title and seo data. It also has allowed me to keep the load more script working.

No idea how else to solve this but disabling the collection is not possible, plus if I just use the routes option I still run into load more issues.

_Note: Using nurui theme, not casper._

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [September 3, 2019, 1:40pm UTC](https://forum.ghost.org/t/routes-and-collections-no-seo-data-and-template-conflicts/8883/5 "2019-09-03T13:40:08Z")

</div>

Have you tried keeping the updated collection with the `data: page.schools` but removing the routes definition?

---

<div class="post-metadata">

**Author:** ![andrewmc](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/andrewmc/32/3108_2.png) [@andrewmc](https://forum.ghost.org/u/andrewmc)\
**Post date:** [September 4, 2019, 7:12am UTC](https://forum.ghost.org/t/routes-and-collections-no-seo-data-and-template-conflicts/8883/6 "2019-09-04T07:12:27Z")

</div>

Yeah, unfortunately I did try pretty much every possible combination… no luck.

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [September 4, 2019, 8:37am UTC](https://forum.ghost.org/t/routes-and-collections-no-seo-data-and-template-conflicts/8883/7 "2019-09-04T08:37:21Z")

</div>

Hmm, that’s not good. I can see that you’ve also opened a support issue. If we can’t get this resolved here then it might be best to switch to the support ticket.

Are you at all able to share what you have so far? If it’s not the conflict between routes and collections, which I feel like it most likely is, then it might be the theme not catering for infinite loading. Do you get any errors when scrolling to the bottom of the page? It’s very hard to debug this without seeing it

---

<div class="post-metadata">

**Author:** ![The\_Jetsetter\_Cheap](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/the_jetsetter_cheap/32/24019_2.png) [@The\_Jetsetter\_Cheap](https://forum.ghost.org/u/The_Jetsetter_Cheap)\
**Post date:** [October 7, 2024, 8:33pm UTC](https://forum.ghost.org/t/routes-and-collections-no-seo-data-and-template-conflicts/8883/8 "2024-10-07T20:33:01Z")

</div>

Hi David, can you tell me if by setting up collections what Schema Ghost includes into the code? Do you have an example I can see that shows the collection of post so I can see the code?

Thanks

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [October 8, 2024, 10:28am UTC](https://forum.ghost.org/t/routes-and-collections-no-seo-data-and-template-conflicts/8883/9 "2024-10-08T10:28:15Z")

</div>

Sorry, I’m not sure I understand what you’re asking for? If you want to see what Ghost produces when you create a custom collection you might want to set up a local version to try it for yourself

---

<div class="post-metadata">

**Author:** ![The\_Jetsetter\_Cheap](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/the_jetsetter_cheap/32/24019_2.png) [@The\_Jetsetter\_Cheap](https://forum.ghost.org/u/The_Jetsetter_Cheap)\
**Post date:** [March 4, 2025, 11:00pm UTC](https://forum.ghost.org/t/routes-and-collections-no-seo-data-and-template-conflicts/8883/10 "2025-03-04T23:00:54Z")

</div>

It might not be relevant, but [Schema.org](http://Schema.org) for tags is injected into every post as keywords on Ghost, and I was wondering if collections are handled differently.
