Skip to content

Change /cases query URLs to noindex,nofollow#271

Merged
IhorMasechko merged 6 commits intomainfrom
fix/cases-query-robots-nofollow
Apr 9, 2026
Merged

Change /cases query URLs to noindex,nofollow#271
IhorMasechko merged 6 commits intomainfrom
fix/cases-query-robots-nofollow

Conversation

@IhorMasechko
Copy link
Copy Markdown
Contributor

@IhorMasechko IhorMasechko commented Apr 9, 2026

Summary

This PR updates robots meta directives for /cases query-parameter URLs.
Both case listing and case detail pages now use noindex,nofollow when query params are present.
Clean URLs without query params remain index,follow.

What changed

  • Updated website/modules/case-studies-page/index.js:
    • listing pages with filters/search/pagination now render noindex,nofollow (previously noindex,follow)
  • Updated website/modules/case-studies-page/views/show.html:
    • detail pages with any query params now render noindex,nofollow (previously noindex,follow)

Why

To enforce stricter crawler behavior for query-based /cases URL variants and avoid indexing/following parameterized duplicates.

Validation

  • npm run --prefix "./website" lint passes
  • Verified expected robots meta behavior:
    • query URLs => noindex,nofollow
    • clean URLs => index,follow

Updated robots meta directives for parameterized /cases URLs to prevent search engine crawlers from indexing or following query-based variants. Case listing and detail pages now render noindex,nofollow when URL query parameters exist, avoiding duplicate indexed content. Clean URLs without parameters maintain index,follow directives as before.

@IhorMasechko IhorMasechko requested a review from a-nomad April 9, 2026 12:10
@IhorMasechko IhorMasechko self-assigned this Apr 9, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 9, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 7cd06829-1970-44f8-9dda-1687d7679259

📥 Commits

Reviewing files that changed from the base of the PR and between 9d28dd3 and be4b431.

📒 Files selected for processing (2)
  • website/modules/case-studies-page/index.js
  • website/modules/case-studies-page/views/show.html

Walkthrough

The pull request updates the SEO robots meta directive in the case-studies-page module. In index.js, when shouldNoindex is true, the robots value changes from noindex,follow to noindex,nofollow. Similarly, in show.html, when data.hasQueryParams is truthy, the robots directive changes from noindex,follow to noindex,nofollow. All other SEO logic and template structure remain unchanged.

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: updating robots meta directives for /cases URLs with query parameters to use noindex,nofollow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@IhorMasechko IhorMasechko enabled auto-merge (squash) April 9, 2026 12:16
@IhorMasechko IhorMasechko merged commit 20d49c3 into main Apr 9, 2026
11 checks passed
@IhorMasechko IhorMasechko deleted the fix/cases-query-robots-nofollow branch April 9, 2026 13:19
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