Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple routes error #220

Open
ews opened this issue Mar 22, 2017 · 0 comments
Open

Multiple routes error #220

ews opened this issue Mar 22, 2017 · 0 comments

Comments

@ews
Copy link

ews commented Mar 22, 2017

Hi there,

I have this in my code (two different routes, / and /category), both of them are using the same collection and templates (I just want to have different URLS for different queries over the same collection).

The problem I am trying to solve is that when I go to the root (/, /page/:NUM) the second (category) one is called, there is no way to view only the first one.

`this.ShowProducts = new Meteor.Pagination(Products, {
route: "/page",
router: "iron-router",
routerTemplate: "ShowProducts",
homeRoute: ["/"],
itemTemplate: 'IndividualListProduct',
routerLayout: "MasterLayout",
templateName: "ShowProducts",
fastRender: true,
perPage: 100,
infinite: false,
sort: {
num_comments: -1
},

});

this.Category = new Meteor.Pagination(Products, {
router: "iron-router",
homeRoute: ["/category/"],
route: "/category",
routerTemplate: "ShowProducts",
routerLayout: "MasterLayout",
templateName: "ShowProducts",
perPage: 100,
infinite: false,
});
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant