Apparently, you HAVE to configure "Culture and hostnames" with the full Url if it has a port number, otherwise the Url() method won't return the correct / actual Url.
So, I had "/" for "en" and had to change it to "https://localhost:44311/" so that the Url() method on IPublishedContent actually returned the full Url.
How do I get the full Url including port for an IPublishedContent
Having obtained a node as IPublishedContent, I want to get the full Url of it.
I tried homePage.Url() but that only gives me "https://localhost/" but the site is running (via Visual Studio) at "https://localhost:44311/"
How do I get the full path including the port?
Edit:
Both of these fail to return the Port (they all return "https://localhost/"):
Also tried
Apparently, you HAVE to configure "Culture and hostnames" with the full Url if it has a port number, otherwise the Url() method won't return the correct / actual Url.
So, I had "/" for "en" and had to change it to "https://localhost:44311/" so that the Url() method on IPublishedContent actually returned the full Url.
is working on a reply...