Files
summercms/.planning/phases/32-seo-foundation/32-DISCUSSION-LOG.md

22 KiB

Phase 32: SEO foundation - Discussion Log

Audit trail only. Do not use as input to planning, research, or execution agents. Decisions are captured in CONTEXT.md — this log preserves the alternatives considered.

Date: 2026-10-24 Phase: 32-seo-foundation Participant: Dawid (SEO specialist, delegated by Jakub); discussion held in Polish, recorded in English Areas discussed: 1. SEO data model, 2. MCP management, 3. Redirects, 4. robots.txt and noindex policy, 5. Sitemaps (XML boost, HTML sitemap), 6. Pagination, 7. Structured data per page type, 8. Heading structure, 9. hreflang basics, 10. SSR guarantee, 11. Internal linking (added by user), 12. URL normalisation, AI bots, media, breadcrumbs (added)


Requirements stated by the user up front

  • Per-record SEO tab plus global SEO settings, like WinterCMS, but better suited to search optimisation
  • Journal records need meta title, meta description, canonical and meta robots
  • Twitter Card besides Open Graph
  • The whole of SEO must be manageable through MCP (e.g. after an audit: noindex this page, 301 that one to another)
  • Structured data differs per page type: article, home page, service pages; no e-commerce yet
  • HTML sitemap by default, linked from the home page
  • Redirects 301 and 302; robots.txt editable in the admin
  • Correct heading hierarchy: H1 first, then H2, nested H3
  • noindex on filter pages, login and all signed-in user pages
  • SSR so Googlebot sees all content and links
  • (later) The whole of SEO must be manageable through MCP
  • (later) Internal linking without generic anchors; smart default internal linking
  • (later) No WinterCMS-style relative-URL duplicates (// answering 200)

1. SEO data model

Q: Where per-record SEO lives

Options presented: Framework mechanism; Columns on each model; Per-URL only

User's choice: Framework mechanism: a model opts in with one declaration; the framework adds a standard SEO tab and stores the data in one shared table keyed by (model type, record id, locale)

Q: Per-URL override screen and precedence

Options presented: URL > record > global; record > URL > global; No, record + global only

User's choice: Yes, with patterns; precedence URL rule > record SEO > global defaults > values derived from content

Q: Global SEO settings contents

Options presented: Title templates and defaults; Organisation/person data; Verification codes; Default robots per type

User's choice: All four: title templates and defaults (incl. home page template, default description, default OG image, site name); organisation/person data for JSON-LD; search engine verification codes; default robots per content type

Q: Social tags

Options presented: Inherit + optional override; Separate OG and Twitter fields; Automatic only

User's choice: Inherit from SEO/content with optional overrides of og:title, og:description, og:image; Twitter Card summary_large_image falls back to OG; twitter:site in global settings

Q: Search engine verification

Options presented: Meta tag + file; Meta tag only

User's choice: Meta tag codes (Google, Bing, Yandex, others) plus verification files (name + content) served from the site root

Q: Canonical default and override

Options presented: Auto self + override; Manual only

User's choice: Every page self-canonical by default (absolute, junk parameters stripped, pagination kept); field override per record and per URL rule; plus global canonical rules for filters and catalogs

Q: Global canonical rules model

Options presented: Parameter list; Pattern -> canonical rules; Both

User's choice: Query parameter list: parameters marked as content (e.g. page) stay in the canonical, filter/sort parameters are dropped; refinable per path pattern (e.g. /katalog/*)

Q: Meta robots granularity

Options presented: Index/follow + advanced; Index/follow only

User's choice: index/noindex and follow/nofollow with 'inherit' as default, plus advanced: max-snippet, max-image-preview, max-video-preview, noarchive, nosnippet, noimageindex, unavailable_after; same directives also as X-Robots-Tag header (works for PDFs and files)

Q: Editor aids in the SEO tab

Options presented: SERP preview; Counters and warnings; Social card preview; Focus keyphrase and analysis

User's choice: Live Google SERP preview (desktop/mobile, pixel truncation); character and pixel counters with warnings (too long/short, empty, duplicate title/description); focus keyphrase with Yoast-style checks (phrase in title, H1, description, URL; text length). Social card preview not wanted.


2. MCP management

Q: How MCP tools address a page

Options presented: By URL, server resolves owner; Always URL rule; By record ID

User's choice: By URL from the audit; the server resolves the owner: a record behind the URL gets the change in its SEO tab, otherwise a URL rule is created; the answer says where it was written; a URL rule can be forced

Q: Bulk operations and safety

Options presented: Batch + dry run; Batch without preview; Single calls

User's choice: Batch tools taking a list of changes, with dry_run returning the diff and conflicts (redirect loops/chains, noindex on a sitemap page, canonical to a redirected page); apply is all-or-nothing

Q: Read and audit tools

Options presented: Effective SEO of a URL; Site issue report; CSV export/import; History and undo

User's choice: All four: effective SEO of a URL with the source of every value; site issue report; CSV export/import with preview (also in the admin); change history with author/time/before/after and undo of one change or a whole batch

Q: SEO permissions

Options presented: Separate per area; One SEO permission

User's choice: One SEO permission for everything (not split per area)

Q: What the issue report is based on

Options presented: CMS data + crawler; CMS data only; Crawler in a separate phase

User's choice: CMS data checks plus a built-in crawler (on demand or scheduled) fetching rendered pages from the sitemap and links: status codes, H1/H2/H3, canonical, robots, JSON-LD, internal links, orphan pages; results in the admin and over MCP


3. Redirects

Q: Status codes

Options presented: 301,302,307,308+410; 301 and 302 only; 301,302+410

User's choice: 301, 302 and 410 Gone (no 307/308)

Q: Source matching

Options presented: Exact + patterns + regex; Exact + patterns; Exact only

User's choice: Exact (default), wildcard patterns (/old/* -> /new/*) and regex with capture groups; options: ignore case, trailing slash, query string (ignore or pass through); evaluation order exact, then patterns, then regex

Q: Automatic redirects

Options presented: Slug change -> 301; Deletion -> choice; Loop protection

User's choice: Slug/path change of a record creates a 301 from the old URL and flattens existing chains. Not chosen: asking on deletion

Q: Loops and chains

Options presented: Block loops, warn on chains; Block loops and chains; Report only

User's choice: Loops always refused (admin, MCP, import); chains saved with a warning and listed in the issue report

Q: Deleted or unpublished record without a choice

Options presented: 404 + 404 log; Automatic 410; Automatic 301 to parent

User's choice: Plain 404, and the URL shows up in the 404 log; no automatic 410 or 301

Q: Monitoring

Options presented: 404 log; Rule hit counter; Validity dates

User's choice: 404 log (hits, last hit, referer) with one-click/MCP redirect creation. Not chosen: per-rule hit counters, validity dates


4. robots.txt and noindex policy

Q: robots.txt editing

Options presented: Editor + auto parts + staging lock; Plain editor; Structured rules form

User's choice: Text editor with syntax validation and a tester ('is this URL blocked for Googlebot?'); the Sitemap: line is appended automatically; every non-production environment always serves Disallow: / and X-Robots-Tag: noindex regardless of the content

Q: Default robots per page kind

Options presented: Search results; Filters and sorting; Tags and authors; Technical pages

User's choice: noindex: login, register, password reset, all signed-in user pages, internal search results (noindex,follow), filter/sort parameter URLs (noindex,follow), technical pages (cart/checkout later, draft previews, thank-you pages, 404/errors). Tags: noindex,follow by default. Authors: always index,follow. Pagination (e.g. blog page 2+): always index,follow with a self-referencing canonical.

Q: How the frontend knows a page is private

Options presented: Auto from auth + admin patterns; Admin patterns only; By hand in code

User's choice: Automatic for every route that requires sign-in (noindex,nofollow + X-Robots-Tag) plus path patterns in the admin for public but non-indexable pages; the user plugin's auth layer marks its own pages

Q: Consistency of noindex, robots.txt and sitemaps

Options presented: Automatic; Warnings only

User's choice: Automatic: pages with noindex, a canonical elsewhere or a redirect drop out of the XML and HTML sitemaps; warnings when a noindex page is blocked in robots.txt and when a sitemap URL is blocked


5. Sitemaps (XML boost, HTML sitemap)

Q: User's sitemap idea

Options presented: free text after 6 proposals

User's choice: Sitemap index split by type: categories, tags, posts, CMS pages, and offer/service pages separately; each type batched in files of 1000 URLs so ~20 sitemaps can be added to GSC and monitored one by one; no priority and no changefreq. Also accepted: real lastmod from the actual content change, image sitemap (featured image + images in the body), Google News sitemap, IndexNow, HTML sitemap generated from the same source

Q: Existing sm-sitemap-plugin (PHP byte parity, priority tiers, single file)

Options presented: Extend, PHP mode as legacy switch; New mode replaces old; New SEO plugin, old untouched

User's choice: New mode replaces the old one: PHP parity removed, every site moves to the new format including grzybyfunkcjonalne. BREAKING change on a shared core plugin, explicitly chosen by the user: new plugin version, grzyby migrated in the same phase, parity goldens retired

Q: Where CMS and offer/service pages come from (Nuxt pages the backend does not know)

Options presented: Page registry in CMS; Pages plugin in a later phase; Manual sitemap URLs only

User's choice: A page registry in the CMS (admin + MCP): frontend URL, page type (page, offer, service, landing), SEO tab, modification date; Nuxt pages read their SEO from it; sitemaps group by type; the frontend can report its routes at build time so none are missed

Q: Batch size

Options presented: 1000, configurable; Fixed 1000

User's choice: 1000 by default, configurable in settings (max 50 000); stable file numbering (sitemap-posts-1.xml ...); oldest first so new URLs land in the last file and earlier files do not shift

Q: Google News sitemap and IndexNow

Options presented: Both optional; IndexNow always, News optional; No News

User's choice: Both optional, enabled in settings; News for chosen categories/types; IndexNow key generated in the admin, pinged on publish, slug change and deletion

Q: HTML sitemap content

Options presented: All indexable, groups and paging; Structure only

User's choice: Everything indexable: no 404s, no redirected URLs, no noindex (same set as the XML sitemaps); grouping and paging at Claude's discretion

Q: HTML sitemap location and linking

Options presented: Footer on every page; Home page only

User's choice: Linked from the footer of every page (so also the home page); path set in the admin, default /mapa-strony (pl) or /sitemap (en) with locale variants; page component in a Nuxt layer, overridable


6. Pagination

Q: Robots and canonical on page 2+ (from topic 4)

Options presented: stated by user in topic 4

User's choice: Always index,follow with a self-referencing canonical

Q: URL form

Options presented: Per site, default ?page=N; Always /strona/N; Always ?page=N

User's choice: Per site, default ?page=N; a site may choose a path form (/blog/strona/2), e.g. to keep WinterCMS URLs; the other form 301s to the configured one

Q: Title, description and content on page 2+

Options presented: Title suffix; Description suffix; Category text on page 1 only; H1 with page number

User's choice: All four: title suffix ('Blog - strona 2 z 14 | Site'), description suffix ('Strona 2 z 14'), category long text (pillar content) only on page 1, H1 with the page number on 2+

Q: Mechanism

Options presented: links + optional load more; Numbered links only

User's choice: Always numbered server-rendered links; 'load more'/infinite scroll only as an optional enhancement over them that updates the URL to ?page=N; in head

Q: Invalid page numbers

Options presented: page=1 -> 301, out of range -> 404; Out of range -> 301 to last

User's choice: ?page=1 (or /strona/1) 301 to the unnumbered URL; beyond the last page 404; garbage (?page=abc, -1) 404


7. Structured data per page type

Q: Default mapping

Options presented: As in the table; With changes

User's choice: JSON-LD as one @graph linked by @id. Every page: WebPage + BreadcrumbList + refs to WebSite and Organization. Home: WebSite (+SearchAction when search exists) + Organization/LocalBusiness from global settings. Post: BlogPosting (or Article/NewsArticle) with author Person, publisher Organization, image, dates, wordCount, articleSection. Category/tag: CollectionPage + ItemList. Author: ProfilePage + Person (sameAs). Service/offer: Service (provider, areaServed, optional Offer with price). Contact: ContactPage + LocalBusiness/Organization with address and hours. FAQ plugin page: FAQPage. Post with YouTube: VideoObject. Generated automatically, no editor work.

Q: Editor control per record/page

Options presented: Type + fields + custom JSON-LD; Type + fields; Automatic only

User's choice: Type choice in the SEO tab (e.g. BlogPosting/NewsArticle/Article; Service/Product), a type-dependent field form, plus a 'custom JSON-LD' field for advanced users, validated on save and merged into the graph

Q: Publisher in global settings

Options presented: Organization/LocalBusiness/Person; Organization only

User's choice: Choice of Organization, LocalBusiness with subtype (address, geo, opening hours, phone) or Person for personal blogs; logo, sameAs (social, Wikipedia, KRS), contact data

Q: Validation

Options presented: Admin + report; Google test link only

User's choice: In the admin against Google rich-result required/recommended properties per type, plus crawler checks of rendered JSON-LD, plus a 'check in Rich Results Test' link per URL


8. Heading structure

Q: H1 inside body content (page title is the H1)

Options presented: No H1 in editor + automatic conversion; Refuse save; Warning only

User's choice: Editor toolbar offers H2-H4 only; any H1 in content (pasted, imported from WinterCMS, written via MCP) is converted to H2 on save with a notice to the editor

Q: Skipped levels and empty headings

Options presented: Editor warning + report; Automatic renumbering on save

User's choice: Live heading outline in the editor flags errors (skipped level, empty heading, heading that is only a link); the crawler checks rendered pages (exactly one H1, no skipped levels, H1 consistent with the title); no silent rewriting beyond the H1 conversion

Q: Headings in template elements

Options presented: Rule in Nuxt layers; Leave as is

User's choice: One convention enforced in the Nuxt layers and their tests: H1 only in the main content; post cards on listings are H2; sidebar and footer widgets do not use content headings (styled text) so they do not disturb the outline


9. hreflang basics

Q: Where hreflang is emitted

Options presented: Head and sitemap; Sitemap only

User's choice: Both in every page head and xhtml:link in the XML sitemaps, from one source (record locale alternates); plus <html lang>, og:locale and og:locale:alternate

Q: x-default

Options presented: Default-locale version; Configurable

User's choice: Points to the default-locale version

Q: Page without a translation

Options presented: No hreflang for that locale; Fallback to default locale

User's choice: No hreflang for that locale; never serve default-locale content under another locale's URL


10. SSR guarantee

Q: How public pages are guaranteed server-rendered

Options presented: Hard rule + checks; Documentation guideline only

User's choice: Hard rule: indexable pages are always SSR or SSG; ssr:false only on noindex routes; the Nuxt SEO layer fails the build when an indexable route has ssr:false; the crawler compares raw (no-JS) HTML with rendered HTML and reports content or links that appear only after JS

Q: Server guarantees to search engines

Options presented: Real HTTP codes; Links as ; Content without interaction; SEO-friendly images

User's choice: All four: real HTTP status codes (404 not soft-404 200, 410 and 301 per rules); all navigation (menus, pagination, cards, breadcrumbs) as server-rendered ; content in tabs/accordions/FAQ present in the HTML, only hidden by style; images with native loading=lazy and real src/alt, dimensions, featured image not lazy with fetchpriority

Q: sm-bm-app (client-only SPA)

Options presented: Separate phase if indexable; Internal app; In this phase

User's choice: Internal application with no public indexable pages: it only gets noindex and Disallow, no SSR migration


11. Internal linking (added by user)

Q: User requirement

Options presented: free text

User's choice: Avoid generic anchors ('kliknij tutaj'); post links are plain followed links (no rel attribute); smart default internal linking consistent with SEO. User first proposed image links with rel=nofollow; after the note that internal nofollow is only a hint and does not conserve PageRank, chose one link per card

Q: Post image in cards (listings, related)

Options presented: Link with rel=nofollow; One link per card; Configurable per site

User's choice: One link per card: only the title is a text link; the image is clickable for users but has no separate in the HTML (or tabindex=-1, aria-hidden), so Googlebot sees one link with a good anchor

Q: Anchors

Options presented: Layers + content validation; Layers only

User's choice: Layer components never use generic anchors (card link = post title; any 'read more' carries the title, e.g. 'Czytaj: