I'm working on an MVC project and I'm having trouble redirecting pages. The project is based on controllers and actions , which have the proper functions that call these files and call their methods, in this case actions.
This is the HTML of the menu:
<li class="button"><a href="">To view this page in English</a></li>
<li class="button"><a href="apresentacao">Apresentação</a></li>
<li class="button"><a href="objetivos">Objetivos</a></li>
<li class="button"><a href="participantes">Participantes</a></li>
<li class="button"><a href="pesquisa">Pesquisas e Projetos</a></li>
When the URL looks like this:
http://localhost/pasta_raiz/ ou
http://localhost/pasta_raiz/index
When you click on a link in the menu, for example, the presentation redirects correctly to the following link:
http://localhost/pasta_raiz/apresentacao
But when URLs are explicit action , that is:
http://localhost/pasta_raiz/index/index
By clicking the link presentation, I'm directed to:
http://localhost/pasta_raiz/index/apresentacao
Being that the correct one would be:
http://localhost/pasta_raiz/apresentacao
And when I put in the addresses href="/apresentacao"
I'm forwarded to:
http://localhost/apresentacao
Resulting in a page not found . I do not know what to do, what could be wrong?