Faceted Navigation Links - doesn't specify form

Hi all,

 

I'm having trouble with faceted navigation. I have a custom form (images.ftl) which has faceted navigation. However the links that are generated don't include the '&form=images' so when I click on one of them, it defaults back to simple.ftl.

 

All other links seem fine - spelling suggestions, pagination, etc. My search box uses an hidden input field to select the form.

 

Is there a way to force the links to include the custom form? Or have it set it up wrong?

 

Many thanks,

Robin

we sometimes need to clean up faceted navigation links to get them working.
You can do that in the template or in a proxy request (if you embedding it in another service).

if you can post the code you have for the faceted nav in your .ftl and the version you are using might be able to suggest some updates

1 Like

I have the facted navigation and pagination working ok now, but now the spelling suggestion doesn’t work.

Is there a way to remove the ?collection=image-collection&form=images from the spelling suggestion url?

<@s.CheckSpelling prefix="<h5 id=\"search-spelling\"><i class=\"material-icons grey-text\">help</i> Did you mean <em>" suffix="</em>?</h5>" />

In the pagination I used:

a href="${fb.nextUrl?replace('&?collection=[a-zA-Z0-9_-]+&?','','r')?replace('&?form=[a-zA-Z0-9-_]+&?','','r')??html}"

But I cant see where I’d use that for spelling suggestion?