Skip to content

fix: differentDomains with no_prefix missing alternate links#3493

Merged
BobbieGoede merged 3 commits intonuxt-modules:mainfrom
ap-arto:hreflang-fix
Mar 30, 2025
Merged

fix: differentDomains with no_prefix missing alternate links#3493
BobbieGoede merged 3 commits intonuxt-modules:mainfrom
ap-arto:hreflang-fix

Conversation

@ap-arto
Copy link
Copy Markdown
Contributor

@ap-arto ap-arto commented Mar 30, 2025

Respect differentDomains option in getHreflangLinks.

🔗 Linked issue

#3480

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Resolves #3480

getHreflangLinks does not respect differentDomains when the strategy is set to 'no_prefix', causing the hreflang link not to be generated.

📝 Checklist

  • I have linked an issue or discussion.
  • I have added tests (if possible).
  • I have updated the documentation accordingly.

@BobbieGoede BobbieGoede changed the title respect differentDomains in getHreflangLinks fix: differentDomains with no_prefix missing alternate links Mar 30, 2025
Copy link
Copy Markdown
Member

@BobbieGoede BobbieGoede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@BobbieGoede BobbieGoede merged commit 7e16aec into nuxt-modules:main Mar 30, 2025
9 checks passed
@ap-arto ap-arto deleted the hreflang-fix branch July 20, 2025 09:21
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.

Hreflang alternate links are not being generated for differentDomains: true

2 participants