MCPcopy
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
189function removeQueryParams(redirect) {
190 return new URL(redirect, 'https://docs.github.com').pathname
191}
192
193function isDeprecatedVersion(path) {
194 // When we rewrote how redirects work, from a lookup model to a

Callers 1

handleRedirectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected