fix(categories): broaden leaf detection for /extern/*/{vin,mdl}_items #15
Reference in New Issue
Block a user
Delete Branch "fix-extern-items-leaves-prod"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cherry-pick of dev commit
3ddb187. Prevents 7905+ ghost child categories under VW group P5 chemicals/accessories nodes.The leaf-path checks only matched /servicepart/vin_items literally, but PL24's P5 modern catalog ships the same shape under /chemicals/vin_items, /accessories/vin_items, /chemicals/mdl_items, etc. When user clicked a "Rötuşkalemseti" (touch-up paint set) category whose linkPath was /p5vwag/extern/chemicals/vin_items, the code drilled in, treated each paint chemical's per-part URL (?partno=LLSMAX010) as a sub-category, and inserted 228 ghost rows under it. Replace the literal substring match with a regex that covers the whole /extern/{kind}/(vin|mdl)_items pattern; apply to both the user-vehicle (categories.service) and the catalog (catalog.service) flows. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>