correct baseUri when using ajax for swig template retrieve