diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index b1d63f7141..7fafaa4457 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -123,7 +123,7 @@ var ajaxify = ajaxify || {}; }; function removeRelativePath(url) { - if (url.indexOf(RELATIVE_PATH.slice(1)) !== -1) { + if (url.indexOf(RELATIVE_PATH.slice(1)) === 0) { url = url.slice(RELATIVE_PATH.length); } return url;