Skip to content

[Frontend] buildPageMetadata sets canonical but no hreflang alternates, so loans/lend pages emit no en/es/tl language links #1237

Description

@grantfox-oss

Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0

Why this matters

frontend/src/app/lib/metadata.ts:36-41 only sets alternates.canonical = pathname; there is no alternates.languages map. Every page that uses this helper (loans/page.tsx, loans/[loanId]/page.tsx, lend/page.tsx generateMetadata) therefore ships no rel=alternate hreflang tags, so search engines cannot associate the three locale variants.

Acceptance criteria

  • buildPageMetadata adds alternates.languages with en/es/tl (and x-default) entries derived from path
  • Rendered head on /en/loans contains hreflang link tags for es and tl
  • Canonical remains the current-locale URL

Files to touch

  • frontend/src/app/lib/metadata.ts

Out of scope

  • Per-page metadata coverage for pages not yet using the helper

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or requestfrontendIssues related to frontend developmentseoSEO improvements

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions