Fix URL syntax for redirect location in DocumentAPI