fix(pl24): recover Volvo categories — stop vin-group.action?group1= shadowing
Volvo (VIN-indexed legacy catalog) ships its real top groups as vin-group.action?group1=… in the vin-group HTML. PL24's json-vin-main-group.action endpoint now 404s, so decode falls back to the HTML scrape — but parseP4NavigationCategories AND the seed-time NAV_CRUMB filter both blanket-exclude vin-group.action, dropping every real Volvo group → 0 categories. Exclude vin-group.action as a crumb only when it lacks group1=. Confirmed upstream: 7 real groups (Frenler, Elektrik sistemi, …) present in the HTML for YV1AS7050A1118639. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4012,7 +4012,13 @@ export class PL24FordLegacyService {
|
||||
if (
|
||||
href.includes("portal.action") ||
|
||||
href.includes("vehicle.action") ||
|
||||
href.includes("vin-group.action") ||
|
||||
// vin-group.action is the VIN breadcrumb crumb — EXCEPT when it carries
|
||||
// group1=. Volvo (and other VIN-indexed legacy catalogs) ship their real
|
||||
// top groups as vin-group.action?group1=… in the HTML. PL24's
|
||||
// json-vin-main-group.action now 404s, so decode falls back to this
|
||||
// scrape; the blanket vin-group.action exclude then drops every real
|
||||
// Volvo group → 0 categories. Keep the group1= links.
|
||||
(href.includes("vin-group.action") && !href.includes("group1=")) ||
|
||||
href.includes("logout.action") ||
|
||||
href.includes("login")
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user