0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/services/routing
kirrg001 e4807a779c 🐛 Fixed default theme context
closes #9674

- the collection router had a hardcoded default context "home"
  - this is wrong
- the context array get's automatically filled for the collection
  - if you are serving a page e.g. /page/2/ -> it's "paged"
  - if you are serving / -> it's "home"
    - same for {{body_class}}, it outputs "home-template" on "/"
    - this is the same behaviour as in 1.23.x
2018-06-08 15:11:47 +02:00
..
controllers 🐛 Fixed post redirect with query params 2018-06-07 09:52:51 +02:00
helpers Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
middlewares Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
bootstrap.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
CollectionRouter.js 🐛 Fixed default theme context 2018-06-08 15:11:47 +02:00
index.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
ParentRouter.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
PreviewRouter.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
registry.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
RSSRouter.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
StaticPagesRouter.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
StaticRoutesRouter.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
TaxonomyRouter.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00