Skip to content

Commit

Permalink
fix: Attempt to fix Google canonical URL detection
Browse files Browse the repository at this point in the history
It seems that a meta redirect with a timeout greater than 0
is treated as a temporary redirect by the Google crawler.

This seems to cause a discrepancy between our reported
canonical site URLs and the ones inferred by Google.

Setting the timeout to 0 may force Google to update its view
of the canonical URLs.
  • Loading branch information
AdrianoKF committed Mar 10, 2024
1 parent ea9583a commit bebe3fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
<head>
<meta charset="utf-8">
<title>Redirecting</title>
<link rel="canonical" href="latest/">
<noscript>
<meta http-equiv="refresh" content="1; url=latest/" />
<meta http-equiv="refresh" content="0; url=latest/" />
</noscript>
<script>
window.location.replace(
Expand Down

0 comments on commit bebe3fa

Please sign in to comment.