I am trying to use the multilang plugin but fail to understand it.
I have configured the languages in the config file.
When going to the root of the site I am automatically redirected to the browser language's page (so site.tld redirects to site.tld/en/) as expected.
How am I supposed to handle hyperlinks? My menu fetches links from the database with some hardcoded links.
eg.:
<a href="/about">about</a>
<a href="/shop">shop</a>
<a href="/contact">contact</a>
These links are not automatically being redirected to /en/... and generate a 404.
From what I undertand from the documentation the routes should be
automatically changed with the prefix (as does the index page).Why is this not happening?
I can solve this by getting the languagae from the ml instance:
$this->f3->set('SESSION.lang', $this->ml->current);
and use that in the template file:
<a href="{{ @SESSION.lang }}/about">about</a>
But I don't think this is how it is supposed to work?