Fixed ACP ajax requests
authorAlexander Ebert <ebert@woltlab.com>
Tue, 16 Aug 2016 09:32:44 +0000 (11:32 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 16 Aug 2016 09:32:44 +0000 (11:32 +0200)
wcfsetup/install/files/acp/templates/header.tpl
wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Request.js

index 3102e78f91cb9221b983ed60df156e4fd38a7f47..4fffd05621febe6c096be0b5aaa6b60dbafa581d 100644 (file)
@@ -18,6 +18,7 @@
        <script>
                var SID_ARG_2ND = '';
                var WCF_PATH = '{@$__wcf->getPath()}';
+               var WSC_IS_ACP = true;
                var SECURITY_TOKEN = '{@SECURITY_TOKEN}';
                var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
                var TIME_NOW = {@TIME_NOW};
index 7be7c8c2cf33698c5e9184406ae791ef5ca1b9a1..f5d09fc8a96975232bb95a475a7d37d6405c59f5 100644 (file)
@@ -62,7 +62,7 @@ define(['Core', 'Language', 'Dom/ChangeListener', 'Dom/Util', 'Ui/Dialog', 'Wolt
                        
                        this._options.url = Core.convertLegacyUrl(this._options.url);
                        if (this._options.url.indexOf('index.php') === 0) {
-                               this._options.url = WCF_PATH + this._options.url;
+                               this._options.url = WCF_PATH + (window.WSC_IS_ACP === true ? 'acp/' : '') + this._options.url;
                        }
                        
                        if (this._options.pinData) {