Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Add redirects and specify canonical URLs pointing to dart.dev #4504

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

parlough
Copy link
Member

@parlough parlough commented Jun 28, 2023

This is step 1 in retiring the old linter site. Using http-equiv it redirects from the generated pages to their dart.dev equivalents. It also specifies a canonical URL to clearly signal to search engines that the content has moved.

Eventually we'll be able to cleanup and eventually disable the automatic generation, but this gets the redirects functional immediately.

I've staged a version of the site generated with these changes. Visit the below links to see the redirects functional:

Staged rule index page: https://parlough-linter.web.app/lints/index.html
Staged rule page: https://parlough-linter.web.app/lints/prefer_final_fields.html
Staged all rule list: https://parlough-linter.web.app/lints/options/options.html

Contributes to dart-lang/sdk#59186 and dart-lang/site-www#4499

@coveralls
Copy link

Coverage Status

coverage: 96.838%. remained the same when pulling d1180c0 on parlough:feature/redirect-to-dart-dev into cf4fbcd on dart-lang:main.

@srawlins srawlins merged commit 9bda381 into dart-lang:main Jun 28, 2023
@parlough parlough deleted the feature/redirect-to-dart-dev branch June 28, 2023 15:38
Copy link
Member

@pq pq left a comment

Choose a reason for hiding this comment

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

💎

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants