Skip to content

fix: patch templates on the fly with seo robots meta tag for older versions#104

Merged
burmudar merged 5 commits intomainfrom
wb/patch-version-templates
Feb 28, 2025
Merged

fix: patch templates on the fly with seo robots meta tag for older versions#104
burmudar merged 5 commits intomainfrom
wb/patch-version-templates

Conversation

@burmudar
Copy link
Contributor

When serving older versions, docsite fetches that versions content and serves it (as is expected), but we need the older content to have the noindex, nofollow meta header tag.

We therefore check if we are loading the document template and do the patching on the fly.

Test plan

  • Tested locally (see screenshot)
  • unit tests
    Screenshot 2025-02-28 at 13 38 27

Part of DINF-767

@burmudar burmudar requested a review from a team February 28, 2025 12:01
@burmudar burmudar self-assigned this Feb 28, 2025
@burmudar burmudar force-pushed the wb/patch-version-templates branch from cca3684 to 3ec5b26 Compare February 28, 2025 12:11
@burmudar burmudar force-pushed the wb/patch-version-templates branch from 5c66329 to 0344a9a Compare February 28, 2025 13:22
@burmudar burmudar merged commit c0daf1f into main Feb 28, 2025
2 of 3 checks passed
@burmudar burmudar deleted the wb/patch-version-templates branch February 28, 2025 15:08
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.

2 participants