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
Pass in query string parameter
On the destination page $request.Headers["referer"] will give the url of the link that sent you there.
$request.Headers["referer"].split("=")[1] give you usa.
There’s probably a better way in case of multiple parameters…
gav