Pass in query string parameter

If you had more parameters eg “http://localhost:10001?location=usa&state=texas
You could substring using indexof() to pull out individual values. More flexible that just splitting.

Might even be simpler to skip the key value query parameters and go for simple values eg
http://localhost:10001#usa/texas

gav