Not sure if this can be done natively or if an add-on is out there.
I'm trying to figure out a way to limit entries with multiple parent categories to just one parent and it's children. The reason, I have nested product URL's:
Currently this works well for products with a single parent category.
Right now entries with multiple parent categories build "bad" URL's in the search results with this template code:
Which works, if the entry has only one parent category assigned to it. If it has multiple, I get a nested URL with parent and child categories mixed together:
Any ideas on how I could limit the parent & child categories to just one parent tree? Thanks for the help!