For a product showcase site I would like to utilize the custom pagers module to display previous/next navigation so users can browse through individual products in a given category. A problem arises when a product has more than one category(taxomony term. e.g. 'A' & 'B') assigned to it. What happens then is the custom page module displays two instances of the pager associated with each category on this product's page.

What I want to achieve is when users access this product page via the category 'A' landing page I want users to be able to browse through only category 'A' products with an instance of the pager, and when they access this product page via the category 'B' landing page have them be able to browse only through category 'B' products.

I suspect the URLs configuration might help here as they currently exist as http://domain/content/product-name rather than http://domain/category/categoryA/product-name. In my custom_pager View I could target a term in the URL. However, again how would I handle a product with more than one category association.