Skip to content

Update club links and add HCB organization link - #180

Merged
3kh0 merged 2 commits into
hackclub:mainfrom
hippogriff101:main
Aug 31, 2026
Merged

Update club links and add HCB organization link#180
3kh0 merged 2 commits into
hackclub:mainfrom
hippogriff101:main

Conversation

@hippogriff101

Copy link
Copy Markdown
Contributor

The commits for this PR have all been made from GitHub Mobile. 😭

  • Remove old links to leaders.hackclub.com
  • Add join code for clubs.hackclub.com
  • Add a redirect to any HCB org with hack.af/hcb/...

Copilot AI lite review requested due to automatic review settings August 29, 2026 09:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates hack.af redirect endpoints to remove legacy leaders.hackclub.com links, route club join links through clubs.hackclub.com, and add a new shortcut redirect for HCB organization pages.

Changes:

  • Added /hcb/:org redirect to https://hcb.hackclub.com/<org>.
  • Updated /join/:code redirect to https://clubs.hackclub.com/auth/member?join=<code>.
  • Removed legacy leaders.hackclub.com-based redirects (/club/:name, /confirm/:code, old /join/:code target).
Suppressed comments (1)

app.js:558

  • The join code is inserted into the query string without URL-encoding. If it contains &, = or other reserved characters, it can inject extra query parameters or yield a malformed redirect. Use URLSearchParams / new URL() (or encodeURIComponent) to build the redirect safely.
app.get("/join/:code", (req, res) => {
    res.redirect(302, "https://clubs.hackclub.com/auth/member?join=" + req.params.code);
});

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread app.js
Comment on lines +548 to +550
app.get("/hcb/:org", (req, res) => {
res.redirect(302, "https://hcb.hackclub.com/" + req.params.org);
});
@3kh0
3kh0 merged commit 5531b21 into hackclub:main Aug 31, 2026
4 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.

3 participants