mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-01 02:41:39 -05:00
🐛 Dynamic Routing Beta: Fixed wrong template order for static routes
refs #9601
This commit is contained in:
parent
db3aa7d062
commit
f49073a8ec
1 changed files with 2 additions and 1 deletions
|
@ -11,13 +11,14 @@ class StaticRoutesRouter extends ParentRouter {
|
|||
super('StaticRoutesRouter');
|
||||
|
||||
this.route = {value: mainRoute};
|
||||
this.templates = (object.templates || []).reverse();
|
||||
this.templates = object.templates || [];
|
||||
this.data = object.data || {query: {}, router: {}};
|
||||
this.routerName = mainRoute === '/' ? 'index' : mainRoute.replace(/\//g, '');
|
||||
|
||||
debug(this.route.value, this.templates);
|
||||
|
||||
if (this.isChannel(object)) {
|
||||
this.templates = this.templates.reverse();
|
||||
this.rss = object.rss !== false;
|
||||
this.filter = object.filter;
|
||||
this.limit = object.limit;
|
||||
|
|
Loading…
Add table
Reference in a new issue