I am using @Url.PageLinkurl() helper to render my links. I have a website with multiple languages and they all have domains mapped to each language branch as below:
My issue is when i try to use a page from another language, for example if I use a page from the German language branch on the English website, my link is rendered as www.example.com/de/my-link/ instead of www.de.example.com/my-link/.
The my-link page doesnot exists in the english language branch. is there any other helper method that I should be using to get the correct behaviour?
Have a look at this post from Joel http://joelabrahamsson.com/episerver-7-and-mvc-getting-the-url-for-a-page/
Or you could try using GetUrl instead: EPiServer.Web.Routing.UrlResolver.GetUrl()
There is an active bug for this that we are currently working on. Hopefully the fix will be include in next release.
Johan, I'm looking forward for the fix! :)
There is now a new update 7.11.0 that contain a fix for this.