Skip to content

WIP: Better Sourcegraph URL handling

Warren Gifford requested to merge better-soucegraph-url into master

Created by: lguychard

Fixes #6521 (closed), #3990 (closed)

  • Expose sourcegraphURL as Observable<URL>, not string.
  • 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

Merge request reports

Loading