这个问题的答案是设置横幅的URL如下:
http://{currenthost}/shoes-half-off
然后传递额外的自定义变量
currenthost
如果区域处于本地模式
view_local()
:
$_REQUEST['currenthost'] = $_SERVER['HTTP_HOST'];
$raw = view_local($what, $zoneid, $campaignid, // ...
把它传给
openx/www/delivery/ajs.php
作为GET字符串的一部分。打开这个:
// ...
if (document.mmm_fo) document.write ("&mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
// ...
对此:
// ...
if (document.mmm_fo) document.write ("&mmm_fo=1");
document.write ("&currenthost="+window.location.href); // <-- Added
document.write ("'><\/scr"+"ipt>");
// ...