summaryrefslogtreecommitdiff
path: root/cgithub/views/blob.eta
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-09-09 11:03:02 -0400
committerJoe Mou <dev@mou.fo>2026-09-09 14:39:57 -0400
commita7bc82cad42b7b8c4c8c52e1217f7f005b632e6d (patch)
tree611468fa8b0cc02e7540dc870071bab941636e1b /cgithub/views/blob.eta
parent484cdb8dbceb572e4b858c80109cb81b671fd2fd (diff)
Serve GitHub's global search when it names one repository
/search?q=repo:owner/name+...&type=code matched the /:owner route and rendered a profile page for an owner named "search", which GitHub 404s. It is the URL GitHub's own search box produces, so it arrives whenever a search is redirected here. A /search route now takes it: when the query carries a repo: qualifier and a type, it strips the qualifier and redirects to that repository's search route, which already maps issues and pull requests to pages we render and hands the rest to GitHub. Searches that name no single repository -- bare queries, org:/user: scopes, a missing type -- keep redirecting to github.com/search as they did before. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GkGX6puS45xD5KzdV9tHEA
Diffstat (limited to 'cgithub/views/blob.eta')
0 files changed, 0 insertions, 0 deletions