Try our conversational search powered by Generative AI!

Remove language segment from url



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:

  • English (en) -
  • Spanish (es) -
  • German (de) -

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 instead of

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?

Jul 03, 2014 12:04

Have a look at this post from Joel

Or you could try using GetUrl instead: EPiServer.Web.Routing.UrlResolver.GetUrl()
Jul 14, 2014 13:53

There is an active bug for this that we are currently working on. Hopefully the fix will be include in next release.

Jul 23, 2014 9:19

Johan, I'm looking forward for the fix! :)

Jul 23, 2014 11:30

There is now a new update 7.11.0 that contain a fix for this.

Aug 05, 2014 15:56
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.