Rename query variable

Hi @teodor,

I’m using Wappler 7.6.0 on macOS and I’m trying to create a query parameter variable for debugging, like:
https://mondomain.com/index.php?debug=1

On my page, when I go to Query Params and click Add Default Variable, Wappler validates the variable as “new”. But when I try to rename it to debug, it only accepts the first character (so it becomes just “d”), and an error message pops up. In the end, the variable is not created.

This is urgent because I need to deliver this change to a client.

Could you please help me resolve this issue as soon as possible?

Thank you,
Morgan FORGES

image

I’ve just noticed that I’m not the only one experiencing issues with Query Params, so I’m going to wait a bit. However, if you could find a solution quickly, that would be greatly appreciated :blush:

Thank you in advance.

So I manually modified my config.js file to temporarily work around the issue.

dmx.config({
  "index": {
    "query": [
      {
        "type": "text",
        "name": "Step"
      },
      {
        "type": "text",
        "name": "debug"
      }
    ],
    "vMessage": {},
    "vStep": {
      "meta": null,
      "outputType": "text"
    }
  }
});


I can't really recreate the issue, the query params are created and renamed without any issues. Maybe try restarting Wappler and check again?

I restarted Wappler and also restarted my Mac, but it’s still doing the same thing.

Could this be caused by the fact that I’m using a Bluetooth keyboard on my Mac mini?

Some words are reserved. It's undocumented and causes confusion. Have you tried using another query param name other than debug?