Skip to content

Redirect root site traffic to badgersolarracing.org#1

Merged
sbasu107 merged 2 commits intomainfrom
copilot/redirect-badgerloop-to-badgersolarracing
Apr 22, 2026
Merged

Redirect root site traffic to badgersolarracing.org#1
sbasu107 merged 2 commits intomainfrom
copilot/redirect-badgerloop-to-badgersolarracing

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 22, 2026

badgerloop-software.github.io currently serves no redirect at the root, so visitors do not get forwarded to the active team website. This PR adds an immediate client-side redirect from the repository root to https://badgersolarracing.org/.

  • Root redirect page

    • Added index.html at the repository root.
    • Redirect is implemented with both:
      • window.location.replace("https://badgersolarracing.org/") for immediate browser navigation.
      • <meta http-equiv="refresh" ...> as a fallback for non-JS contexts.
    • Includes canonical link and visible fallback anchor to the target URL.
  • Implemented redirect logic

<meta http-equiv="refresh" content="0; url=https://badgersolarracing.org/" />
<script>
  window.location.replace("https://badgersolarracing.org/");
</script>
Original prompt

Can you make it so when I visit "badgerloop-software.github.io" on a web browser it redirects to "https://badgersolarracing.org/" ?

Copilot AI changed the title [WIP] Add redirect from badgerloop-software.github.io to badgersolarracing.org Redirect root site traffic to badgersolarracing.org Apr 22, 2026
Copilot AI requested a review from sbasu107 April 22, 2026 05:42
@sbasu107
Copy link
Copy Markdown
Member

@copilot the screenshot shows that the target site to redirect the page to was blocked. Is it due to browser settings?

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 22, 2026

@copilot the screenshot shows that the target site to redirect the page to was blocked. Is it due to browser settings?

Yes—this was due to the sandbox browser policy, not the redirect code. The page reached the redirect target and then Chrome in this environment blocked that destination with ERR_BLOCKED_BY_CLIENT. In a normal browser session, it should redirect to https://badgersolarracing.org/ as expected. Screenshot from the run: https://github.com/user-attachments/assets/78e0ee50-2a35-4772-b8c5-88b91804a686

@sbasu107 sbasu107 marked this pull request as ready for review April 22, 2026 05:56
Copilot AI requested a review from sbasu107 April 22, 2026 05:56
@sbasu107 sbasu107 merged commit 14b0af3 into main Apr 22, 2026
2 checks passed
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.

2 participants