Link rel next incorrect for /filter/ type links

There is a bug when the /filter/ type URLs are in play – this happens when the user is not in a product-category but are filtering only on an attribute.

When it happens, the pagination on the page is correct, but the link is pointing incorrectly to /shop/page/2/ instead of /filter/fish/page/2/

This should be a simple matter of adding a filter to the rel=”next” filter hook.

Related forum post:

https://www.wpintense.com/forums/topic/seo-friendly-pagination-for-fww-and-auto-infinite-scroll/#post-115788