Make breadcrumbs exactly route to product

tuanvd
Tourist
5 0 3

I'm trying to make breadcrumbs follow the exact path of the screen
for example, for product a, going from the top page there will be breadcrumbs: top/product a
go from the search page: top/search/products a
go from collection page: top/collection name/product a