& In URL Breaking Search Results

Version>Funnelback 15.10.0

Whenever I click on any of the facet links/navigation I get &sort=dmeta2& in the URL which breaks the results page.

I had to resort to using jQuery:
//correct URL
$(‘.uc-facet li a’).each(function() {
$(this).attr(“href”, function(index, oldfacet) {
return oldfacet.replace(/&/g, "&");
});
});

example URL: <a href="search.html?collection=courseguide&amp;amp;form=course&amp;amp;profile=_default_preview&amp;amp;sort=dmeta2&amp;amp;query=pharmacy&amp;smeta_B_sand=undergraduate">Undergraduate</a>

Can’t figure out why this is occurring - has anyone else had this issue and how it was fixed?

Thanks in advance
NickyP

Does the URL come from the data model or is it being generated in freemarker?
Could you switch from search.html to search.json and share the ‘facets’ section under ‘response’.

I wonder if this has something to do with freemarker wrongly escaping for html.

Thanks Luke - too hard so i ended up just staying with the javascript solution