Skip to content

Fix Builder MP SEO: noindex auth pages, promote bills listing - #92

Merged
xrendan merged 3 commits into
mainfrom
fix/builder-mp-seo
Sep 21, 2026
Merged

xrendan merged 3 commits into
mainfrom
fix/builder-mp-seo

Conversation

@xrendan

@xrendan xrendan commented Sep 21, 2026

Copy link
Copy Markdown
Member

Summary

Searching "Builder MP" on Google returns /bills/sign-in ranked above the bills listing.

Root cause: the sign-in page had no metadata, so it inherited the bills layout default title "Builder MP" verbatim. The listing itself was titled "Home · Builder MP", which Google rewrote to the H1 "45th Canadian Federal Parliament".

Changes

  • noindex, nofollow on /bills/sign-in, /bills/unauthorized and /bills/[id]/edit (layouts added where the page is a client component)
  • Bills listing: absolute title "Builder MP — Canadian Federal Bills Tracker | Build Canada", Builder MP-led description, keywords, and WebApplication JSON-LD naming Build Canada as publisher
  • Listing H1 now "Builder MP: Bills of the 45th Canadian Parliament" with a subtitle
  • Layout default / Twitter descriptions mention Builder MP
  • /bills sitemap priority 0.8 → 0.9; /bills/api/ added to robots disallow

Sign-in is intentionally not added to robots disallow: Google must crawl it to see the noindex tag.

Testing

  • tsc --noEmit and eslint pass
  • After deploy: request re-indexing of /bills and /bills/sign-in in Search Console

Searching "Builder MP" returned /bills/sign-in instead of the listing.
The sign-in page had no metadata and inherited the layout default title,
while the listing was titled "Home · Builder MP".

- noindex sign-in, unauthorized and bill edit pages
- Give the bills listing an absolute Builder MP title, description,
  keywords and WebApplication JSON-LD; rename H1 to lead with Builder MP
- Mention Builder MP in layout descriptions
- Raise /bills sitemap priority; disallow /bills/api/ in robots
# Conflicts:
#	src/app/bills/page.tsx
#	src/app/robots.ts
@greptile-apps

greptile-apps Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with no outstanding correctness or repository-rule violations identified.

Summary

This PR improves Builder MP search presentation and prevents authentication and editing routes from being indexed.

  • Adds noindex, nofollow metadata to sign-in, unauthorized, and bill-editing pages.
  • Gives the bills listing a stronger title, description, keywords, heading, and WebApplication structured data.
  • Disallows the bills API route in robots.txt and raises the listing’s sitemap priority.
  • Simplifies the newly added listing copy to consistently use “builder-first.”

Reviews (2) · Last reviewed commit: "Simplify Builder MP copy"

greptile-apps[bot]
greptile-apps Bot previously approved these changes Sep 21, 2026
@greptile-apps
greptile-apps Bot dismissed their stale review September 21, 2026 17:36

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

@xrendan
xrendan merged commit 2f80769 into main Sep 21, 2026
2 checks passed
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