Thanks for great theme.

I have developed multilanguage site (i18n module was used).
And logo link always lead to home page with default language.
To fix this I have changed:

                  <a href="<?php echo $base_url; ?>" title="<?php echo t('Home'); ?>"><img src="<?php echo $logo; ?>" alt="<?php echo t('Home'); ?>" /></a>

to

                  <a href="<?php echo url('<front>', array('absolute' => TRUE));?>" title="<?php echo t('Home'); ?>"><img src="<?php echo $logo; ?>" alt="<?php echo t('Home'); ?>" /></a>

Comments

linuxbcn’s picture

I do not work for me. I work with them one but I think the code could be something like this:

        <?php if($is_front): ?>
          <h1 id="site-name">
            <a href="<?php echo url('<front>', array('absolute' => TRUE));?>" title="<?php print $site_name; ?>">
            <?php if ($logo): ?>
            	<img src="<?php print $logo; ?>" alt="<?php print $site_name; ?>" id="logo" />
            <?php endif; ?>
            <?php print $site_name; ?></a>
          </h1>
        <?php else: ?>
          <div id="site-name">
            <a href="<?php echo url('<front>', array('absolute' => TRUE));?>" title="<?php print $site_name; ?>">
            <?php if ($logo): ?>
            	<img src="<?php print $logo; ?>" alt="<?php print $site_name; ?>" id="logo" />
            <?php endif; ?>
            <?php print $site_name; ?></a>
          </div>
        <?php endif; ?>

I need put somthing in the template?
Tnx!

linuxbcn’s picture

The solution in: http://drupal.org/node/608302

Description
instead of

<?php
print $base_path
?>

the link should be

<?php
print check_url($front_page)
?>

on page.tpl.php (ang page-front.tpl.php)

otherwise all multilingual pages will have the default language page as the frontpage (homepage)

pokadan’s picture

Status: Active » Fixed

committed to dev with solution proposed by linuxbcn

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.