I open the page using this link:
http: //127 .0.0.1 /?m=YXJ0dXIuemFyZW1iYUBvcC5wbA==&k=Og1IPWILUASGIlxqsa9GrbasGh5Ahn2
To remove parameters, I wrote:
Var newUrl As String = Session.URL
GoToURL(newUrl)
However, after reloading the page I have the address: http://localhost:8080/
Instead of “127.0.0.1” there is “localhost”
I wrote the code:
Var newUrl As String = Session.URL
newUrl = newUrl.Replace("localhost", "127.0.0.1")
GoToURL(newUrl)
but it doesn’t work because newUrl has the value = “/303566DC88224F33C25D53D70B57D1342FAC8511E5D5FA928E4530D962424BCF”
I can’t replace “localhost” because it’s not in newUrl
How can I replace 127.0.0.1 with localhost?
9 posts - 3 participants