I have Azure Function that accepts Url as parameter:
[FunctionName(nameof(GetUrl))]
public IActionResult GetUrl(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "url/{*url}")] HttpRequest req,
string url)
{
return new OkObjectResult(HttpUtility.UrlDecode(url));
}
I'm passing https://example.com - locally it displays "https://example.com", but on server I'm receiving "https:/example.com" (single '/'). Is there other way to solve that issue than string-replace operations?