Fixes API proxy when not using relativeUrlRoot

Huge oversight on my part. Apologies.

Introduced by f7d9f1e25d037f84857ab1953d35c53675c72f10