javascript - Passing url from JS to MVC Controller in a form of a string -


so passing string url js file, like

"https://....."

like this

$http.post("user", vm.user)        .then(function (response) {            $http.get("user/url/" + response.data.url)                    .then..... 

now having problems,

my controller gets url drops second forward slash,

so ends being

"https:/....."

my controller looks this,

[httpget("user/url/{*url}")]     public iactionresult get(string url)     {         try         { 

anyway past ? how make sure string intact when passed ?


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -