Skip to content

Force-redirect 33 /operate/* app-linked URLs to new-IA pages#4980

Open
shannonbradshaw wants to merge 1 commit into
viamrobotics:mainfrom
shannonbradshaw:force-operate-redirects
Open

Force-redirect 33 /operate/* app-linked URLs to new-IA pages#4980
shannonbradshaw wants to merge 1 commit into
viamrobotics:mainfrom
shannonbradshaw:force-operate-redirects

Conversation

@shannonbradshaw
Copy link
Copy Markdown
Collaborator

Summary

The old /operate/ pages still exist on the site. Aliases on new-IA pages are shadowed because the old pages serve their canonical URLs first. This PR adds Netlify forced redirects (status = 301!) that override the old pages, sending users immediately to the correct new-IA destinations.

33 redirects cover every /operate/* URL the Viam app links to (from Michael's audit). Once this merges, the test script at code-map/scripts/test-app-urls.py should show 76/76 GOOD.

How forced redirects work

Normal Netlify redirects (status = 301) only fire when no static file exists at the source path. Forced redirects (status = 301!) fire regardless, overriding any existing page.

Test plan

  • make build-prod clean
  • Netlify deploy preview
  • Run python3 code-map/scripts/test-app-urls.py --base-url <preview-url> against the deploy preview

🤖 Generated with Claude Code

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 18, 2026

Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit b3e7b4a
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/69e3dbafeba77c0008aa57e9
😎 Deploy Preview https://deploy-preview-4980--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 38 (🔴 down 2 from production)
Accessibility: 99 (no change from production)
Best Practices: 83 (no change from production)
SEO: 89 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Apr 18, 2026
The old operate/ pages still exist, so Hugo aliases on new-IA pages
are shadowed by the old canonical pages. Netlify forced redirects
(status 301!) override the static files, sending users to the correct
new-IA pages immediately without waiting for the operate/ section to
be deleted.

Every redirect maps an app-linked URL from Michael's audit to the
destination verified in our session.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@shannonbradshaw shannonbradshaw force-pushed the force-operate-redirects branch from c439d8d to b3e7b4a Compare April 18, 2026 19:29
@viamrobotics-overwatch
Copy link
Copy Markdown

Hey @shannonbradshaw — CI is green and no reviewer is assigned yet. Could you request one when you have a chance?

Auto-comment from overwatch. Will not re-nudge for 7 days.

1 similar comment
@viamrobotics-overwatch
Copy link
Copy Markdown

Hey @shannonbradshaw — CI is green and no reviewer is assigned yet. Could you request one when you have a chance?

Auto-comment from overwatch. Will not re-nudge for 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants