Files
webstudio/docs/university/core-components
Oleg Isonen 35e77d845f fix: Omit 404 canonicals and ignore console logs in screenshots (#6685)
Generated 404 pages currently include a default canonical link in their
server response. Screenshot capture also fails when a page calls
`console.error`, even if Chrome reports no uncaught exception and the
PNG was saved.

This PR omits the default canonical on 404 pages and reserves screenshot
failure for uncaught page exceptions. It keeps the existing exception
and route-error checks.

Ref #6672
Ref #6671

## Tasks
- [x] Recheck the final diff for removable code and rerun focused checks
before merge.
- [x] Reproduce the 404 canonical in the reported published project and
add a regression that fails before the fix.
- [x] Test successful, dynamic 404, and generic 404 generated responses.
- [x] Check the reported published screenshot pages and confirm
`console.error` is distinct from an uncaught exception.
- [x] Update screenshot regression fixtures so navigation tests still
use real exceptions.
- [x] Review and correct the affected canonical documentation.
- [x] Run fixture generation and inspect its diff; retain only the two
generated route changes caused by this fix.
- [x] Run focused tests, full screenshot tests, full CLI prebuild tests,
MCP preview tests, typechecks, lint, formatting, and the CLI build.
- [x] Run the approved full Luna/low agent evaluations and record the
failures below.
- [x] Review the staged diff and push the fix.
- [x] Monitor required CI after the final simplification and resolve any
review comments.

## Verification
- CLI prebuild: 153 passed.
- Screenshot browser: 60 passed.
- MCP preview: 50 passed.
- CLI and vision typechecks, lint, formatting, CLI build, and fixture
pipeline passed.
- The new 404 and console-error tests failed for the expected reasons
before their fixes and passed afterward.
- Full Luna/low agent evaluations: 6 of 9 fixtures passed. The agents
missed native form mode, design-input, and Markdown references task
requirements. Baseline comparison was disabled because stored baselines
use a different model and reasoning effort. No baseline was changed.

## Limits
The reported 404 page did not regain a canonical after hydration in my
production browser check; the confirmed defect was in its initial HTML
response. The regression test covers generated HTTP responses, not
browser hydration. #6672 remains open for hydration verification. #6671
remains open for sanitized exception details, saved-artifact metadata,
and Windows timeout recovery.
2026-11-15 12:24:07 +00:00
..

🧩 Core Components

Layout

{% content-ref url="element.md" %} element.md {% endcontent-ref %}

{% content-ref url="slot.md" %} slot.md {% endcontent-ref %}

{% content-ref url="separator.md" %} separator.md {% endcontent-ref %}

Typography

{% content-ref url="text.md" %} text.md {% endcontent-ref %}

{% content-ref url="heading.md" %} heading.md {% endcontent-ref %}

{% content-ref url="paragraph.md" %} paragraph.md {% endcontent-ref %}

{% content-ref url="inline-text.md" %} inline-text.md {% endcontent-ref %}

{% content-ref url="blockquote.md" %} blockquote.md {% endcontent-ref %}

{% content-ref url="code-text.md" %} code-text.md {% endcontent-ref %}

Navigation

{% content-ref url="link.md" %} link.md {% endcontent-ref %}

{% content-ref url="button.md" %} button.md {% endcontent-ref %}

Media

{% content-ref url="image.md" %} image.md {% endcontent-ref %}

{% content-ref url="video.md" %} video.md {% endcontent-ref %}

{% content-ref url="vimeo.md" %} vimeo.md {% endcontent-ref %}

{% content-ref url="vimeo-background-video.md" %} vimeo-background-video.md {% endcontent-ref %}

{% content-ref url="youtube.md" %} youtube.md {% endcontent-ref %}

Forms

{% content-ref url="form.md" %} form.md {% endcontent-ref %}

{% content-ref url="webhook-form.md" %} Webhook Form (deprecated) {% endcontent-ref %}

{% content-ref url="input.md" %} input.md {% endcontent-ref %}

{% content-ref url="textarea.md" %} textarea.md {% endcontent-ref %}

{% content-ref url="label.md" %} label.md {% endcontent-ref %}

{% content-ref url="checkbox.md" %} checkbox.md {% endcontent-ref %}

{% content-ref url="radio-button.md" %} radio-button.md {% endcontent-ref %}

{% content-ref url="select.md" %} select.md {% endcontent-ref %}

Data

{% content-ref url="list.md" %} list.md {% endcontent-ref %}

{% content-ref url="collection.md" %} collection.md {% endcontent-ref %}

{% content-ref url="content-embed.md" %} content-embed.md {% endcontent-ref %}

{% content-ref url="content-block.md" %} content-block.md {% endcontent-ref %}

Embeds

{% content-ref url="html-embed.md" %} html-embed.md {% endcontent-ref %}

{% content-ref url="markdown-embed.md" %} markdown-embed.md {% endcontent-ref %}

Animation

{% content-ref url="animation-group.md" %} animation-group.md {% endcontent-ref %}

{% content-ref url="text-animation.md" %} text-animation.md {% endcontent-ref %}

{% content-ref url="video-animation.md" %} video-animation.md {% endcontent-ref %}

{% content-ref url="stagger-animation.md" %} stagger-animation.md {% endcontent-ref %}

Head / SEO

{% content-ref url="head-slot.md" %} head-slot.md {% endcontent-ref %}

{% content-ref url="json-ld.md" %} 🏷️ JSON-LD {% endcontent-ref %}

XML / Localization

{% content-ref url="xml-node.md" %} xml-node.md {% endcontent-ref %}

{% content-ref url="time.md" %} time.md {% endcontent-ref %}