Move the `WSC_API_URL` into com.woltlab.wcf
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 10:02:55 +0000 (12:02 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 10:02:55 +0000 (12:02 +0200)
This workaround is no longer required with the removal of multi-domain setups.

see 5d1c96bc6e92b8b44170922b8abb26b898582f8c

com.woltlab.wcf/templates/headIncludeJavaScript.tpl
wcfsetup/install/files/acp/templates/header.tpl

index 324ca713b8a77c94fad96b4f4782f42930d7c170..722a5ce6ed7212f85ea6d1afb21bf2b1f4c99480 100644 (file)
@@ -5,7 +5,7 @@
 <script>
        var SID_ARG_2ND = '';
        var WCF_PATH = '{@$__wcf->getPath()}';
-       var WSC_API_URL = '{@$__wcf->getActivePath()}';
+       var WSC_API_URL = '{@$__wcf->getPath()}';
        {* The SECURITY_TOKEN is defined in wcf.globalHelper.js *}
        var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
        var LANGUAGE_USE_INFORMAL_VARIANT = {if LANGUAGE_USE_INFORMAL_VARIANT}true{else}false{/if};
index 1ddb07ea7da48f0b9d88d443f5698f4cfed33066..1b77185232b30f2a23e3cefbf44095470af57acd 100644 (file)
@@ -31,7 +31,7 @@
        <script>
                var SID_ARG_2ND = '';
                var WCF_PATH = '{@$__wcf->getPath()}';
-               var WSC_API_URL = '{@$__wcf->getActivePath()}acp/';
+               var WSC_API_URL = '{@$__wcf->getPath()}acp/';
                {* The SECURITY_TOKEN is defined in wcf.globalHelper.js *}
                var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
                var LANGUAGE_USE_INFORMAL_VARIANT = {if LANGUAGE_USE_INFORMAL_VARIANT}true{else}false{/if};