[eluser]turco[/eluser]
I'm using URI Language Identifier to build up a multilanguage website. English is the default language. The url of the homepage is, let's say, something similar to
In the homepage there is a set of categories of products, each of them linked to the page with the relative list. For example
Code:
www.website.com/en/objects/catalog/3.html
To achieve that this is the html:
Code:
<a href="objects/catalog/<?= $id ?>.html"><?= $category ?></a>
It works fine. But if I want to copy the same list of categories in internal pages, I have a problem of path. In fact previous html code tends to add the query string to the current one, that is great in the homepage, but doesn't work in internal page
In other hand, if I try with
Code:
<a href="/objects/catalog/<?= $id ?>.html"><?= $category ?></a>
or
Code:
<a href="../../objects/catalog/<?= $id ?>.html"><?= $category ?></a>
I have other different problem. The only solution I've found it's
Code:
<a >config->item('language'), $this->config->item('lang_uri_abbr')) ?>/objects/catalog/<?= $id ?>.html"><?= $category ?></a>
But it's annoying to repeat for every link. Any suggestion?