Skip to content

Commit

Permalink
Add redirects and specify canonical URLs (#4504)
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough authored Jun 28, 2023
1 parent 603fbba commit 9bda381
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tool/doc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ class HtmlIndexer {
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="refresh" content="0; url=https://dart.dev/lints">
<link rel="canonical" href="https://dart.dev/lints">
<link rel="stylesheet" href="../styles.css">
<title>Linter for Dart</title>
</head>
Expand Down Expand Up @@ -509,6 +511,8 @@ linter:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="refresh" content="0; url=https://dart.dev/lints/all">
<link rel="canonical" href="https://dart.dev/lints/all">
<link rel="stylesheet" href="../../styles.css">
<title>Analysis Options</title>
</head>
Expand Down Expand Up @@ -656,6 +660,8 @@ class RuleHtmlGenerator extends RuleGenerator {
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="refresh" content="0; url=https://dart.dev/lints/$name">
<link rel="canonical" href="https://dart.dev/lints/$name">
<title>$name</title>
<link rel="stylesheet" href="../styles.css">
</head>
Expand Down

0 comments on commit 9bda381

Please sign in to comment.