I can’t get it work any routing, this occurr after delete all routing from Routing Manager because the migration to a new panel with new routes, etc, etc.
I have try to restart wappler after remove all routing, even, updating new wappler version 4.5.0.
I tought that routes.json creates the .htaccess file, but now I’m not sure due to the new created htaccess file.
Or I’m doing something wrong.
Thanks in advance.
I dont remember the correct term for it… But you need to enable some module/flag on Apache server for routing to work.
Maybe @patrick can help better.
The dmx-route id “new_dashboard” is default and this should be replace when clic on menu link calling route dmx-route id “admin_modificar_usuarios” that have this path="/editar-usuarios"
But when I hover mouse on menu link show up this: https://mydomain.com/app/vistas/admin/editar-usuario
The URL contains the original path of the file, it can’t get routing.
Is like routing is not been recognize.
At this point I don’t know how to solve this.
I really appreciate you help at this moment.
If I change this: href="./editar-usuarios"
With this: href="/editar-usuarios"
After click I get redirected into https://mydomain.com/editar-usuarios
So no parcial load, it made a complete refresh with a 404 page.
New url should be https://mydomain.com/admin/tablero/editar-usuarios but I can’t ge it to work.
You probably need to create a fresh project and check if that is the behaviour and report.
I have an old PHP project, and don't see the dot for routes. So either something is wrong in latest Wappler version or something is wrong with the project you are working on.
The thing is that before was working, migrating everything to new panel template with new paths and links make me to remove all the old routes and create new ones.
That has nothing to do with PHP or routes.
I am assuming you do not use Git. While setting up theme, you must have changed something else on the pages… Causing this issue.
If you do use Git, you can revert back to the state before theme.
Thanks @sid, you were right, something in page was causing the problem, but not precisily my fault. Took me too much time trying to figure it out why this.
I hope this helps to others if are planing to use external bootstrap 5 templates.
The theme that I’m using is an Admin Dashboard Template, of course bootstrap 5. Updating bootstrap oblidge me to change evething because new version 5.1.0 that differ from local wappler.
The main menu structure start like this: