In the comments, you said that you actually just want
http://localhost:60972/TTSCancel/View2
, which is the absolute URL of the page
urlsearch
refers to.
You just need to do this:
var absoluteUrl = '@Url.Action("View2", "TTSCancel", null, Context.Request.Scheme)';