core
core copied to clipboard
Update Starter to Use HREFLANG Blocks
User Story
As a content editor, I'd like to see that URLs are translated as well for translated pages, as I currently have this and it's impacting SEO.
Acceptance Criteria
Support URL translation
Proposed Objective
Sales
Proposed Priority
Priority 3 - Average
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Sub-Tasks & Estimates
No response
I have some opinions on this. From experience, you don't take an SEO hit based on URL Slug translation.
I ran SEO and Localization at SolarWinds and we spent a year doing tests on translated pages. We never saw any meaningful boost when translating a URL Slug.
Your best gains from SEO will come from making sure a page is set up to share credit between the Default Language and Translated Language versions. You want to pump all your efforts into promoting the Default Language version (using a Canonical Tag), then list out the Translated Language locations using HREFLANG tags.
If you feel the need, having a translated URL Slug is an option, one good way to set it up is via a "Vanity URL" that 301 Redirects over to the default page.
Few Thoughts on Localization... we definitely need to be more opinionated with how this stuff is set up in the app. Looking at Sonnet's site, they have pieced together a way to make some things work, but they seldom follow best practices.
- Consistent URLs are Easy
If I wanted to have English and Spanish versions of a page, I should set them up to use a consistent URL structure for easier maintenance. This format seems to be common and I'd argue industry best practice.
mysite.com/en-us/some-page
mysite.com/es-us/some-page
- Pages should have the correct language tagged on them.
<html lang="en-us">
- Link your pages with an HREFLANG meta tag.
Both pages should have the same HREFLANG blocks.
<link rel="alternate" hreflang="en-us" href="https://mysite.com/en-us/some-page" />
<link rel="alternate" hreflang="es-us" href="https://mysite.com/es-us/some-page" />
- All pages should have the "default language" URL set as the Canonical URL.
<link rel="canonical" href="https://mysite.com/en-us/some-page" />
-
HTTP Headers should contain the correct Language data for each page.
-
Lastly, Locale-based Sitemaps Need to be Generated (and ideally declared with Google Webmaster Tools for faster adoption)
-
It's OK to default content back to the primary language until it can be translated.
It's not ideal, but it's not a huge penalty. You can get a "misspelling" penalty -- so a page will come off as having a lot of typos and rankings will be slightly penalized in that language, but the pages are still generally usable.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.
Repurposing this issue... Localized URLs will have to wait until we have completed the #24794 epic.
But... we do need to build out an example showing how HREFLANG blocks can work with the starter.