Fix categories with multiple ../ in their hrefPrefix

Was already fixed for links.

Bug: 48408
Change-Id: I84d2b23a05585890b2d5023c7c7f38a43889fd7f
Merge "Fix categories with multiple ../ in their hrefPrefix"