Hi,
I have an episerver website offered in two languages: en and en-ca. Both languages share the same content hierarchy. I have configured en-ca language to fall back to en.
My site configuration looks like this:
- Name: mysite
- URL: https://mysite.com
- Host Names:
- First:
- Host Name: mysite.com
- Culture: en
- Type: primary
- Scheme: https
- Second:
- Host Name: mysite.ca
- Culture: en-ca
- Type: primary
- Scheme: https
- First:
Everything appears to be fine, and when I navigate to a page on mysite.ca I see content offered in en-ca and falling back to en. I am noticing, however, that certain URLs are being generated back to mysite.com.
Most URLs are being generated as relative, and these are working as expected. For some URLs, however, I want to include the hostname within the URL. Canonical links, Open Graph links, sitemap links, etc- we want to all have hostnames associated with them. What is the proper mechanism for generating a URL with the hostname inside of it while taking language into account?
@Url.ContentUrl appears to be strictly relative.