This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
Redirect polygonzone.roboflow.com to the Workflows docs page - #30
Merged
Merged
Conversation
PolygonZone has been replaced by the polygon zone editor in Roboflow Workflows. index.html and 404.html now send every path on the subdomain to https://docs.roboflow.com/workflows/build/draw-polygon-zones via an instant meta refresh, location.replace() and a canonical tag. The old tool's script.js and styles.css are removed; they stay in git history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The standalone PolygonZone tool has been replaced by the polygon zone editor built into Roboflow Workflows. The new docs page, Draw Polygon Zones and Lines (roboflow/docs#391, #392), targets the search terms this subdomain ranks for, so the subdomain should send its visitors and its ranking there.
We couldn't get a DNS or CDN redirect set up. But the site is served by GitHub Pages from
mainat/, so a redirect page in this repo is enough. No DNS change is needed, and the existingCNAMEstays.What changed
index.htmlis now a minimal redirect page. It has an instant<meta http-equiv="refresh">,<link rel="canonical">and<meta name="robots" content="noindex">. It also callslocation.replace()(so the old page doesn't stay in browser history) and shows a fallback link.404.htmlis an exact copy. GitHub Pages serves it for any missing path, so deep links and old asset URLs also land on the docs page.script.jsandstyles.cssare deleted. Nothing uses them any more, and git history keeps them.README.mdis down to a few lines pointing to Workflows and the docs page.CNAME,LICENSE.md,CONTRIBUTING.mdand.github/are unchanged.Meta refresh vs 301
GitHub Pages can't send a real HTTP 301. Google treats an instant (
0-second) meta refresh as a permanent redirect, and the canonical tag points to the same URL. The result is the same as a 301 for indexing.Testing
https://docs.roboflow.com/workflows/build/draw-polygon-zonesreturns 200. #392 renamed the slug; the old.../build/draw-lines-and-zonesURL now returns 404, so the redirect points to the new slug.404.htmlwith status 404). Then loaded/,/?1,/index.html,/some/deep/link?x=1#frag,/script.jsand/styles.cssin headless Chromium, with JavaScript on and off. All 12 loads ended on the docs page.After merge
Pages rebuilds from
mainwithin a few minutes. Then every URL on polygonzone.roboflow.com goes to the docs page, including/and any query string or deep link.roboflow.com/polygonzoneandroboflow.github.io/polygonzone/already redirect to the subdomain, so they follow too. Over the next few weeks Google should drop the subdomain from its index and pass its ranking to the docs page.🤖 Generated with Claude Code