Only redact URLs on Sourcegraph.com for paths that start with /github…
Created by: dadlerj
….com, /gitlab.com, and /search, as we only provide private code browsing on Sourcegraph.com from GitHub.com and GitLab.com.
Related: https://github.com/sourcegraph/sourcegraph/pull/37581/files#commit-suggestions
Test plan
All edited files are already covered by unit tests. There are no UI effects of this PR, so no storybook/e2e/integration tests should be required.
My changes include updates to all relevant unit tests and an addition of a new test.