fix for categories broken links with subfolder usage