Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Orchestrator โ€” rewrites the <head> of a static page so it ships:

      1. A localized 7-token <meta name="keywords"> (replacing the EN leak that was identical across all 14 hreflang siblings).
      2. An og:locale + og:locale:alternate[] block (replacing any single hard-coded <meta property="og:locale" content="en_US">).
      3. A Twitter Card block (added if missing โ€” politician-dashboard*.html had none before this module landed).
      4. A JSON-LD WebSite + WebPage + Speakable blob (added if missing).

      The function is idempotent โ€” running it twice yields the same output as running it once. This is required because normalize-static-html-chrome.ts runs in the prebuild pipeline and may execute multiple times during dev / CI re-renders.

      Title and description are preserved verbatim โ€” they are hand-authored per language in the source HTML, and this module is deliberately non-destructive on those fields. The Twitter Card and JSON-LD merely reference them.

      Parameters

      Returns string