diff --git a/sao/src/session.js b/sao/src/session.js index bcfaca017d..ed7386ed13 100644 --- a/sao/src/session.js +++ b/sao/src/session.js @@ -83,7 +83,7 @@ 'contentType': 'application/json', 'data': JSON.stringify(args), 'dataType': 'json', - 'url': '/' + this.database + '/', + 'url': (this.database || '.') + '/rpc/#' + args.method, 'type': 'post', }); },