When using the paginate_base
parameter with exp:low_search:results
(I'm also using Structure, Freebie) any time I reference the channel short_name either as {segment_1}, {freebie_1}, {channel_short_name} or even hard code the channel short name, the pagination URL has the search query in the wrong place.
Using:
paginate_base="{freebie_1}/{freebie_2}/{freebie_3}/{freebie_4}/{freebie_5}/{freebie_6}"
When the URL is:
http://domain.com/yarn/title/asc/1/brand/dmc/P1?keywords=test
the generated pagination URL is:
http://domain.com/yarn/?keywords=yarntitle/asc/1/brand/dmc/P2?keywords=yarn
But if I hardcode a non-existing channel_short_name at {segment_1} - for example: foo
paginate_base="foo/{freebie_2}/{freebie_3}/{freebie_4}/{freebie_5}/{freebie_6}"
the generated pagination URL path is correct! Eg:
http://local.tricotshop.co.uk/foo/title/asc/1/brand/dmc/P2?keywords=test
But if I use a standard exp:channel:entries
loop (without the results query), the generated pagination URL is correct.
Can anyone tell me why this is happening and how I can fix it please?
Thanks!