If you view the source of the page you will see the $site_name gets printed as:

<a class="active" href="/"><a href="/" class="active">groups.devsites.com</a></a>

Instead just:
<a class="active" href="/">groups.devsites.com</a>

Hope that helps

Comments

gmclelland’s picture

When I take out line 177 in template.php
$vars['site_name'] = l($vars['site_name']);

Everything seems to work correctly.

I assume that line is in there so that the $site_name output can be translated?

StudioARE’s picture

Still an issue (with D7 too).

People looking for solution can delete line 129 in template.php

$vars['site_name'] = l($vars['site_name'], '<front>');

tao-7.x-3.0-beta4

Actually... make sure not to have the code in your subtheme... logically thinking.

phiscock’s picture

Is there a way to override just this line (or assign the version of the site_name variable from before this line is implemented, without the link attributes, to another variable) in the sub-theme's template.php file, rather than removing it from the master Tao theme template.php? That way I would not have to redo the amendment any time an update for the Tao theme was released.

Thank you for your help.

Zsuffa Dávid’s picture

Version: 6.x-3.2 » 7.x-3.0-beta4
Status: Active » Needs review

Hi,

I added the html TRUE option in my subtheme template.php file.

$vars['site_name'] = l($vars['site_name'], '<front>', array('html' => TRUE));

Its working for me.

phiscock’s picture

Version: 7.x-3.0-beta4 » 6.x-3.3

That solution didn't work for me but I was able to reset the variable in the subtheme's template.php with:

function subtheme_tao_preprocess_page(&$vars) {
  $vars['site_name'] = $GLOBALS['conf']['site_name'];
  }

Hope this helps others.

Paul

BhumikaVarshney’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Hi @phiscock,
By changing variable in my subtheme like you have done works for me.
Thanks

  • kunalkapoor committed b71113c on 7.x-3.x
    Issue #969400: $site_name gets encoded - shows two links
    
kunalkapoor’s picture

Status: Reviewed & tested by the community » Fixed
kunalkapoor’s picture

Status: Fixed » Closed (fixed)