diff --git a/core/frontend/services/routing/bootstrap.js b/core/frontend/services/routing/bootstrap.js index 1762f73a2c..e4c8a7c550 100644 --- a/core/frontend/services/routing/bootstrap.js +++ b/core/frontend/services/routing/bootstrap.js @@ -81,13 +81,6 @@ module.exports.start = (apiVersion) => { registry.setRouter(staticRoutesRouter.identifier, staticRoutesRouter); }); - _.each(dynamicRoutes.taxonomies, (value, key) => { - const taxonomyRouter = new TaxonomyRouter(key, value, RESOURCE_CONFIG); - siteRouter.mountRouter(taxonomyRouter.router()); - - registry.setRouter(taxonomyRouter.identifier, taxonomyRouter); - }); - _.each(dynamicRoutes.collections, (value, key) => { const collectionRouter = new CollectionRouter(key, value, RESOURCE_CONFIG); siteRouter.mountRouter(collectionRouter.router()); @@ -99,6 +92,13 @@ module.exports.start = (apiVersion) => { registry.setRouter('staticPagesRouter', staticPagesRouter); + _.each(dynamicRoutes.taxonomies, (value, key) => { + const taxonomyRouter = new TaxonomyRouter(key, value, RESOURCE_CONFIG); + siteRouter.mountRouter(taxonomyRouter.router()); + + registry.setRouter(taxonomyRouter.identifier, taxonomyRouter); + }); + const appRouter = new ParentRouter('AppsRouter'); siteRouter.mountRouter(appRouter.router());