Working on an existing PHP project which shouldn’t be using the new routing (it’s all working nicely and I don’t want to change it all at the moment) but as soon as I save a page file it removes this line:
and that breaks the page. I’ve had to insert it back again via a separate text editor but as soon as I save the page again in Wappler it removes that line.
Out of interest have you got a catch all '*' route for 404's Jon? We had a similar problem as the latest update caused issues with several Projects (all using parameters in the route). I've messaged @George with how we resolved it but am happy to share.
Opus 4.6 suggested:
Issue: In routes.js, createApiRoutes() is called after routes.json routes are parsed and registered. Any wildcard route in routes.json (e.g. * or /:page/:lang) will intercept all /api/... requests before API routes are registered, returning an HTML page instead of JSON. Either createApiRoutes() should run before routes.json is parsed, or Wappler should prevent/warn when wildcard routes are added to routes.json.
@Cheese this is a totally different issue here. The issue is that a meta tag is being removed from the page on save, not really related to loading routes in the browser.
and just save it, the line disappear and my links on the page stop working. It disappear if line contain meta name=”ac:route”, if you change the meta name the line stay after saving (but to work it must say ac:route).