question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal to extend the existing hreflang audit

See original GitHub issue

This could also be a brand new audit, but since an existing SEO hreflang audit exists, maybe it could just be extended upon?

The current hreflang audit checks that valid hreflang codes are used. Like with any audit, we could further strengthen/widen the scope so that more things are validated. Here are some suggestions for enhancements:

  1. If a canonical URL exists, then ensure that URL is referenced by one of the hreflang’s source
  2. Country based language variations are fine, e.g. en-gb. But could also do a general language version so an english speaker in canada still benefits, like en. So if we see hreflang codes of en-US and en-AU, this audit could suggest an additional hreflang of en. source
  3. Use utf-8 encoding in URLs: if a link href refers to http://vélo.com, that should instead be http://v%C3%A9lo.com source
  4. The audit could check that a fully-qualified URL is being used - so no relative URLs source

Any thoughts on these? Happy to add these in if we feel these would be useful.

Google webmaster docs here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
patrickhulcecommented, Jun 16, 2020

IMO there’s two separate audits to have for 3.

  1. SEO-specific audit, no relative links for hreflang
  2. Best Practices audit, no protocol-relative links anywhere

@paulirish is that what you were thinking too?

0reactions
umaarcommented, Oct 1, 2020

Yep thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Audit Hreflang - Screaming Frog
1) Select 'Crawl' and 'Store' Hreflang under 'Config > Spider > Crawl'. 'Configuration' is available in the top level menu of the SEO...
Read more >
7 Most Common Hreflang Tags Mistakes and How to Fix Them
Learn how to spot hreflangs tags errors and best practices to increase targeted traffic from specific countries/languages.
Read more >
Hreflang: The Easy Guide for Beginners - Ahrefs
Learn what hreflang tags are, when you should use them, how to implement them, and how to keep your website free of common...
Read more >
12 Common Hreflang Mistakes and How to Prevent Them
As part of the audit, make sure to identify if any pages containing hreflang tags also contain a “noindex” tag. · Validate canonical...
Read more >
Hreflang Tags: The SEO Attribute for Content in Multiple ...
Simply put, language (or lang) tag attributes on an HTML tag tells your browser the language of the current document or webpage, while...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found