2013-05-13 75 views
1

我遇到了锚定目标标记的问题。锚定规范是:锚定目标不起作用

<?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> 

什么错,任何想法?

+2

莫不是到位一些JavaScript动态地将'目标=“_空白”'与'类链接.external_link'?当你删除该类时会发生什么? – Mudshark 2013-05-13 12:02:02

+0

试试这个回声锚(site_url('areaResponsable/perfil'),“Aquí”,'target =“_ self”'); ?> – umefarooq 2013-05-13 12:27:46

+0

@Mudshark,好主意,我会检查一下。 – ramiromd 2013-05-13 12:32:49

回答

0

我检查了你的网站http://apps.manantiales.edu.ar/index.php并为你所有的js文件做了一个wget。我发现一个名为gebo_common.js的库将其中的'http'链接设置为外部链接。哪个使用site_url将使用http。

服务器上的文件http://apps.manantiales.edu.ar/js/gebo_common.js有jQuery代码来将类'external_link'设置为绝对地址。

所以做到这一点:

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