Skip to content

fix: remove static versions.html causing infinite redirect#8

Merged
leseb merged 1 commit into
mainfrom
leseb/fix-versions-redirect
Apr 29, 2026
Merged

fix: remove static versions.html causing infinite redirect#8
leseb merged 1 commit into
mainfrom
leseb/fix-versions-redirect

Conversation

@leseb
Copy link
Copy Markdown
Contributor

@leseb leseb commented Apr 29, 2026

What does this PR do?

Fixes the infinite redirect loop at https://ogx-ai.github.io/versions.

The static versions.html file contained a <meta http-equiv="refresh" content="0; url=/versions"> redirect, but GitHub Pages serves this same file at /versions, creating an infinite loop. The Docusaurus page component (src/pages/versions.js in the ogx repo) already handles this route correctly — we just need to stop overwriting it.

  • Deletes versions.html from the repo root
  • Removes the cp versions.html line from build-latest.sh
  • Removes the cp versions.html line from the build-and-deploy.yml workflow

Test Plan

  1. Merge this PR and trigger a docs rebuild
  2. Visit https://ogx-ai.github.io/versions — should render the dynamic versions page without redirecting
  3. Verify the "All versions" navbar link still works

The static versions.html redirected to /versions via meta refresh, but
GitHub Pages served this same file at /versions, creating an infinite
redirect loop. The Docusaurus page component (src/pages/versions.js)
in the ogx repo already handles this route correctly.

Changes:
- Delete versions.html from the repo root
- Remove the cp of versions.html in build-latest.sh
- Remove the cp of versions.html in build-and-deploy.yml

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Sébastien Han <seb@redhat.com>
@leseb leseb merged commit 9cf4a0a into main Apr 29, 2026
1 check passed
@leseb leseb deleted the leseb/fix-versions-redirect branch April 29, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant