I have created a system in CI that uses the template schema, with header, navmenu, template (component) and footer.
For stylization I use Foundation.
The problem is this: when accessing a simple route, such as home, I have no errors, but when accessing a route as user / new the page loses the reference, since links to css, js, and images , which are relative link, are pointing to a subdirectory of user / because the system thinks it is inside this directory, but it does not exist, it is just a controller.
This does not happen with the controllers' default methods, just when I try to access another method through the controller / method combination in the url.
Does anyone know this error and how to fix it?