fknop / hapi-pagination

Hapi plugin to handle "custom" pagination
MIT License
63 stars 36 forks source link

Date query parameters getting stripped from meta URLs #55

Closed garbles9100 closed 7 years ago

garbles9100 commented 7 years ago

When I call reply.paginate(data, totalCount) and I have a query parameter in my URL (localhost:1234/endpoint?startDate=2017-07-26) the relative URL for meta.self (and others) shows up as: "/endpoint?startDate=&limit=20&page=1". The data I passed in for the startDate is just gone.

fknop commented 7 years ago

https://github.com/fknop/hapi-pagination/pull/54 Probably linked to this.

garbles9100 commented 7 years ago

Oh yes. I missed that. Thanks!