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 Answer 1

2

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>
1
  • This works for me JRoute::_('index.php');
    – 3ehrang
    Commented Feb 1, 2017 at 10:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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