Skip to content

DOC-3497 - Fix self-referencing canonical URLs via page-aliases on v8#4126

Open
kemister85 wants to merge 1 commit intotinymce/8from
hotfix/8/DOC-3497
Open

DOC-3497 - Fix self-referencing canonical URLs via page-aliases on v8#4126
kemister85 wants to merge 1 commit intotinymce/8from
hotfix/8/DOC-3497

Conversation

@kemister85
Copy link
Copy Markdown
Contributor

@kemister85 kemister85 commented Apr 28, 2026

Ticket

DOC-3497 / TINY-14151

Site

Inspect this page

  • latest/react-cloud
    Notice it points to <link rel="canonical" href="https://www.tiny.cloud/docs/tinymce/latest/react-cloud/"> which is expected.
    then inspect this 5/react notice it now points to <link rel="canonical" href="https://www.tiny.cloud/docs/tinymce/latest/react-cloud/"> and not <link rel="canonical" href="https://www.tiny.cloud/docs/tinymce/5/react/">

Changes

Adds :page-aliases: to 14 pages on the tinymce/8 branch to claim the old page IDs from v5/v6. This allows Antora to resolve the correct canonical URL for older versions that were renamed or restructured in v6+.

Without these aliases, Antora cannot match the old page IDs to their v8 equivalents and falls back to self-referencing canonicals — causing Google to treat legacy pages as authoritative.

Framework integrations (8 pages):

  • react-cloud.adoc claims react.adoc
  • vue-cloud.adoc claims vue.adoc
  • svelte-cloud.adoc claims svelte.adoc
  • webcomponent-cloud.adoc claims webcomponent.adoc
  • rails-cloud.adoc claims rails.adoc
  • django-cloud.adoc claims django.adoc
  • bootstrap-cloud.adoc claims bootstrap.adoc
  • laravel-tiny-cloud.adoc claims laravel.adoc

Plugin/feature pages (6 pages):

  • copy-and-paste.adoc claims paste.adoc
  • cloud-quick-start.adoc claims quick-start.adoc
  • spelling.adoc claims spellchecker.adoc
  • non-editable-content-options.adoc claims noneditable.adoc
  • advanced-templates.adoc claims template.adoc
  • exportpdf.adoc claims export.adoc

Each change is a single :page-aliases: line addition; no content changes.

Note: The canonical fix requires a full multi-version build (v5 + v6 + v8) to verify — single-branch staging previews will show self-referencing canonicals regardless. Verify on production after merge by checking the <link rel="canonical"> tag on e.g. /docs/tinymce/5/react/.

Replaces: #4118 (v5) and #4119 (v6) — the page-aliases approach on v8 fixes canonicals for all older versions from a single branch.

Ref: Antora canonical URL docs

Add page-aliases to 14 v8 pages that were renamed from v5/v6, allowing
Antora to resolve the correct canonical URL for older versions.
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