Critical Fix: Product URL Slug Extraction for Reliable API Lookups
Release Information
Version: 1.9.2
Title: Critical Fix: Product URL Slug Extraction for Reliable API Lookups
Description:
This release fixes a critical issue where the WordPress plugin was not extracting and storing product URL slugs, causing the AlloIA API to fail when looking up products by their friendly URL handles (e.g., "blue-umbrella"). The API was attempting to match products by converting names to slugs or using numeric IDs, which was unreliable.
Critical Fix:
- Plugin now extracts and stores the actual URL slug from product permalinks
- Enables AlloIA API to match products by their real URL handle instead of numeric ID
- Fixes AI bot redirect failures when API couldn't find products by slug
- Works seamlessly with all WooCommerce permalink structures
Technical Changes:
- Added extract_url_slug() method to knowledge graph exporter class
- Product export now includes three identifiers: woocommerce_id (numeric), permalink (full URL), and slug (URL handle)
- Slug extraction uses parse_url() and basename() for maximum reliability
- Handles edge cases gracefully with empty string fallback
Impact:
- Fixes product lookup failures in AlloIA knowledge graph
- Ensures AI bot redirects work reliably across all WooCommerce configurations
- Improves product sync reliability between WordPress and AlloIA API
- Required for all sites using custom product permalink structures