Here’s a situation:
A product belongs to multiple categories and the categories are top
menus of a site.
I want to highlight the category of a product when the product detail
page is loaded.
If there’s some context, I can determine which category should be
(For example, I can track the categories that a user selected).
But sometimes there’s no context (for example, the user visits the page
directly without getting through categories).
How can you solve this problem?