锚定目标不起作用

时间:2013-05-13 11:50:13

标签: codeigniter anchor target

我对锚点的目标标记有问题。锚规范是:

<?php echo anchor(site_url('areaResponsable/perfil'), "Aquí", array('target' => '_self')); ?>

但是,当我将项目上传到服务器时,链接会在新选项卡中打开。 FireBug显示了下一个锚:

<a class="external_link" target="_blank"
 href="http://apps.manantiales.edu.ar/index.php/areaResponsable/perfil">Aquí</a>

什么是错的,有什么想法吗?

1 个答案:

答案 0 :(得分:0)

我检查了您的网站http://apps.manantiales.edu.ar/index.php并为您的所有js文件做了一个wget。我发现一个名为gebo_common.js的库正在设置任何与&#39; http&#39;在它作为外部链接。哪个使用site_url将使用http。

服务器上的文件http://apps.manantiales.edu.ar/js/gebo_common.js有jQuery代码来设置类&#39; external_link&#39;绝对的网址。

这样做:

echo anchor('areaResponsable/perfil', "Aquí")