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

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -