Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/github/docs
/ removeQueryParams
Function
removeQueryParams
middleware/redirects/handle-redirects.js:189–191 ·
view source on GitHub ↗
(redirect)
Source
from the content-addressed store, hash-verified
187
}
188
189
function
removeQueryParams(redirect) {
190
return
new
URL(redirect,
'https://docs.github.com'
).pathname
191
}
192
193
function
isDeprecatedVersion(path) {
194
// When we rewrote how redirects work, from a lookup model to a
Callers
1
handleRedirects
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected