Skip to content

Fix requestGraphQL when no baseURL is provided

Warren Gifford requested to merge lg/fix-requestgraphql into master

Created by: lguychard

https://github.com/sourcegraph/sourcegraph/pull/10443 introduced a regression breaking the webapp with TypeError: Invalid base URL: . When no base URL is passed to requestGraphQL, we should simply use a relative URL, not attempt to build an absolute URL.

This is really 🤦 , sorry about that (and integration tests would've caught this)

Merge request reports

Loading