diff --git a/src/js/_enqueues/wp/api.js b/src/js/_enqueues/wp/api.js index c62e73ff38..e5aeac6e4c 100644 --- a/src/js/_enqueues/wp/api.js +++ b/src/js/_enqueues/wp/api.js @@ -145,7 +145,7 @@ wp.api.utils.getRootUrl = function() { return window.location.origin ? window.location.origin + '/' : - window.location.protocol + '/' + window.location.host + '/'; + window.location.protocol + '//' + window.location.host + '/'; }; /**