1

I have a multi-lingual joomla-installation(3.4) and I want to have a URL (within the logo) that linked to the respective root like index.php/en, index.php/ru, and so on.

This works pretty well in a local environment like xampp but when the installation goes live the URL in every language linked always to the german / standard version.

This is how I linked the logo.

 <a title="title" class="navbar-brand" href="<?php echo $this->baseurl; ?>"> </a>

In both cases Joomla is installed to a subfolder.

How can I fix this?

1

Try the following:

<a title="title" class="navbar-brand" href="<?php echo JURI::root(); ?>"></a>

or

<a title="title" class="navbar-brand" href="<?php echo JURI::base(); ?>"></a>

or

<a title="title" class="navbar-brand" href="<?php echo JRoute::_('index.php'); ?>"></a>
  • This works for me JRoute::_('index.php'); – 3ehrang Feb 1 '17 at 10:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.