WIP: Better Sourcegraph URL handling
Created by: lguychard
Fixes #6521, #3990
- 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