In the JS that I am developing, I must enter and / or use a url dinámica
in case the project name changes ...
For this reason, try using the following:
alert(window.location.pathname);
which shows me the following /proyecto/index.php/usuario/
How could I modify this (window.location.pathname)
in such a way that it does not show me the name of the controller that in this case is usuario
if not only this? /project/index.php /
I would appreciate immensely if you can help me with this.