diff options
| author | Joe Mou <dev@mou.fo> | 2026-08-11 11:39:01 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-08-11 11:57:29 -0400 |
| commit | 0a39a7a981f619ac64fdeb26294c7cfd4f110a1a (patch) | |
| tree | bc5539448262980f9d5ca9d3fdaa25fca03a2368 /views/redirect.eta | |
| parent | d76a46b37b12823b5b3976d129c2d4b672a99693 (diff) | |
Redirect to GitHub with a meta refresh
A browser extension redirects github.com to cgithub with declarative net
requests. Its rules match our HTTP redirects back to github.com too, so
those bounce straight back here and loop forever. A meta refresh makes
cgithub the initiator origin instead, which the extension's rules can
exclude, and its delay leaves a page the user can stop on.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'views/redirect.eta')
| -rw-r--r-- | views/redirect.eta | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/views/redirect.eta b/views/redirect.eta new file mode 100644 index 0000000..393a527 --- /dev/null +++ b/views/redirect.eta @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="referrer" content="no-referrer"> + <meta http-equiv="refresh" content="1; url=<%= it.location %>"> + <title>Redirecting to GitHub</title> + <link rel="stylesheet" href="/static/style.css"> +</head> +<body> + <p>cgithub can't render this page. Redirecting to + <a href="<%= it.location %>" rel="noreferrer"><%= it.location %></a>…</p> +</body> +</html> |
