Commit 4f1ad487 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'iamphill-master-patch-57530' into 'master'

Always use blank string if relative URL root is undefined

See merge request gitlab-org/gitlab!39421
parents b0c6a216 64b73bd7
...@@ -14,7 +14,7 @@ export const fetchPolicies = { ...@@ -14,7 +14,7 @@ export const fetchPolicies = {
}; };
export default (resolvers = {}, config = {}) => { export default (resolvers = {}, config = {}) => {
let uri = `${gon.relative_url_root}/api/graphql`; let uri = `${gon.relative_url_root || ''}/api/graphql`;
if (config.baseUrl) { if (config.baseUrl) {
// Prepend baseUrl and ensure that `///` are replaced with `/` // Prepend baseUrl and ensure that `///` are replaced with `/`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment