From: Mike Taylor Date: Fri, 7 Nov 2014 17:14:23 +0000 (+0000) Subject: The pp2_path configuration setting now has its own trailing slash, X-Git-Tag: 1.0.0~49 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=2285b25cf4008dc5e48012c4bba0d08d542ecb1c;p=mkws-moved-to-github.git The pp2_path configuration setting now has its own trailing slash, like sp_auth_path, instead of having the code append it. --- diff --git a/src/mkws-core.js b/src/mkws-core.js index 1557d16..7a1054b 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -155,7 +155,7 @@ mkws.setMkwsConfig = function(overrides) { use_service_proxy: true, pazpar2_url: undefined, pp2_hostname: "sp-mkws.indexdata.com", - pp2_path: "service-proxy", + pp2_path: "service-proxy/", service_proxy_auth: undefined, sp_auth_path: "service-proxy/", sp_auth_query: "command=auth&action=perconfig", @@ -246,7 +246,7 @@ mkws.pazpar2_url = function() { mkws.log("using pre-baked pazpar2_url '" + mkws.config.pazpar2_url + "'"); return mkws.config.pazpar2_url; } else { - var s = document.location.protocol + "//" + mkws.config.pp2_hostname + "/" + mkws.config.pp2_path + "/"; + var s = document.location.protocol + "//" + mkws.config.pp2_hostname + "/" + mkws.config.pp2_path; mkws.log("generated pazpar2_url '" + s + "'"); return s; }