我在将URL作为GET参数传递时遇到了一些问题.当我尝试访问时:
我收到以下消息:
但是,如果我选择:
一切正常(它重定向到一个不存在的网站 – 123 – 当然,但它做到了预期).通过消除我可以说url参数有问题,但它是什么?
OBS:我正在使用rawurlencode()来编码URL.
编辑:你问过的代码……
<?php echo $l->getNomeFantasia() ?>
单击时,链接重定向到一个动作(/ linkebuy / parceiro),其中发生以下情况(基本上没有,只是保留在框架中):
public function execute($request, $response) {
$response->addParameter('url', rawurldecode($request->getParameter('url', ''))); //This creates $url in the view
$response->setTemplate('site/linkebuy/lead-parceiro.php'); //Forwards to the view
}
它包括视图,lead-parceiro.php(上面的问题,我链接到此页面),其中头部包含:
setInterval(function(){ window.location = '<?php echo $url ?>'; },3000);