WIP: Better Sourcegraph URL handling
Created by: lguychard
Fixes #6521 (closed), #3990 (closed)
- Expose
sourcegraphURL
asObservable<URL>
, notstring
. - Build URLs for API requests, link hrefs, etc. using
new URL('/some/path', sourcegraphURL)
rather than string concatenation. - Validate Sourcegraph URL in the options popup/page with
new URL()
, report to the user when the URL is invalid