you don’t need a cocos-specific solution for this, you can use standard JS solutions.
So, in a start scene or something like that, you can do the logic to split between modes. If you are trying this and is not working, in the links you provided, there is a ‘/’ before the ‘?’, and it shouldn’t have. http://localhost:7456?mode=0
For example I have a config file in JSON { "game_restart": true}, after encoding it becomes %7B%20%22game_restart%22%3A%20true%7D
So when I play the game instead of the default URL http://localhost:7456/, it should open http://localhost:7456/%7B%20%22game_restart%22%3A%20true%7D.
Thank you
Everything that comes after the ‘/’ is considered another path inside the URL. In basic therms, you are trying to find some file called %7B%20%22game_restart%22%3A%20true%7D inside your build folder (this is oversimplification, not exactly like that).
Instead of ‘/’ you should do ‘?’ and try to get the content. But even it is not a good solution.
Do you really need to pass this amount of information on the URL? Can’t you have a bunch of config files on the project and pass an argument to select it?