Weird problem with pagination, deleting empty values in url string

Topics: Troubleshooting, Writing modules
Apr 4, 2014 at 1:57 PM
Hey everyone,

I'm having a weird problem, I'm posting (get) back a list with values (lists of checkboxes) like this

/Assortiment?[0].PostedTerms.TermIds=&[0].PostedTerms.TermIds=17&[0].PostedTerms.TermIds=16&[1].PostedTerms.TermIds=&[2].PostedTerms.TermIds=&__RequestVerificationToken=-9zgDqtxU4g3g5X82gIHKZht8yZfPPmPbGF93xQo_UFkoKdexoTu8WKiEFNO8JeeTj0OYsnKfvDHPCPkx0y0JPvua7HWoE4muGNy8VSkqiL4OjuFOIw2r9h5RQ6gNiePa29nkyDSpDXeS3mvNK9hQkJZS0CAHYGt65dxT0oopXI1

This works great, my controller handles the empty values and I use them for creating my loops.

I've just added pagination and when the url string is injected in the previous/next links it looks like this:

/Assortiment?%5B0%5D.PostedTerms.TermIds=%2C17%2C16&__RequestVerificationToken=-9zgDqtxU4g3g5X82gIHKZht8yZfPPmPbGF93xQo_UFkoKdexoTu8WKiEFNO8JeeTj0OYsnKfvDHPCPkx0y0JPvua7HWoE4muGNy8VSkqiL4OjuFOIw2r9h5RQ6gNiePa29nkyDSpDXeS3mvNK9hQkJZS0CAHYGt65dxT0oopXI1&page=2

So as you can see it removes the empty parameters which breaks my code couse I need them.

Anyone have a clue on how to stop this behaviour?

Borrie