Skip to content

Resolve catalog product description links through the route table - #7563

Merged
chubes4 merged 1 commit into
trunkfrom
fix/catalog-description-links
Nov 29, 2026
Merged

chubes4 merged 1 commit into
trunkfrom
fix/catalog-description-links

Conversation

@chubes4

@chubes4 chubes4 commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Problem

Captured page content resolves links to captured routes locally: https://source/policies/ becomes /policies/. Caller-catalog product descriptions bypass that step, so their source links reach WordPress as absolute links to the old store.

In the velocitytechsolutions.com import, 1,581 product descriptions link to https://velocitytechsolutions.com/policies/#International, although /policies/ was imported and serves locally.

Fix

Once product declarations are final, SitePlanRun maps each product's description and short_description through the same RouteLinks::markup that page content uses. Relative links resolve against the product's own page, or against the entrypoint for catalog-only rows. Captured routes become local; uncaptured routes keep their source URL, exactly as on pages.

Evidence

tests/contract/caller-products-catalog.php: a catalog-only row's description links to a captured detail page and to an uncaptured /policies/.

  • trunk: FAIL … href="https://example.test/products/a.html".
  • branch: passes. The captured link becomes /products/a, the same form page links take, and /policies/ stays on the source.

In the full suite, the only failures are the four that also fail on trunk: artwork-slideshow, component-interactions, positioned-carousel-stage and shared-chrome-corpus.


AI disclosure: written with Claude (Claude Code via Roadie), from import-loop evidence; Chris directed the work.

@chubes4
chubes4 merged commit d3a5462 into trunk Nov 29, 2026
15 checks passed
@chubes4
chubes4 deleted the fix/catalog-description-links branch November 29, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant