Based on my test, get_bloginfo(‘url’) will not return backslash, so it will return URL like this:
https://www.example.com/blogs
In this post What is difference between get_bloginfo('url') and get_site_url()?, it is said get_bloginfo(‘url’) calls home_url().
And, in this post https://stackoverflow.com/questions/31086865/why-does-the-trailing-slash-appear-after-url-when-using-home-url-in-wordpress, it is said home_url() will return URL with backslash.
So, I am confused. Anyway, I want to find a function to return URL with backslash.