点前台view: List/index.ctp文件的链接 提交给Controller:ListController的upProj函数,经过一系列处理后 通过 redirect
$this->redirect(array ("controller"=> "list","action" => "index"));
跳转到ListController的初始化函数index函数,然后回到List/index.ctp问题:List/index.ctp 本来有一个链接,点击是调出popup画面。现在popup调用出错了。经调查是popup画面中的URL变得少了一层。代码片断如下:app/View/List/index.ctp:  function addWorkPop() {
    var answer = window.showModalDialog('../list','','dialogWidth=550px;dialogHeight=250px;','');
   if(answer==1){
window.location = "../list/";
   }
  }$this->Html->image('/img/add.png'). ' ' .$this->Html->link('更新项目',  array('controller'=>'list','action'=>'upProj'))<a href="#" onclick="addWorkPop()">Popup处理</a>app/Controller/ListController.php
upProj函数的最后是跳转:
//跳转
$this->redirect(array ("controller" => "list","action" => "index"));本来在没有点[更新项目]链接的时候 Popup处理是没有问题的。但是点击[点更新项目]后经过一番处理,然后会跳转回 app/View/List/index.ctp 。但此时再点 Popup处理 链接 就不好用了,我调查是url的问题。本项目名称是 proj
以前点击[Popup处理]链接 URL是:http://localhost/proj/list/
现在点[更新项目]处理后,再点[Popup处理]链接 发现URL变成了http://localhost/list/为什么URL会少了一层,请问如何解决。谢谢!cakephpredirecturlphppopup