November Happy Hour will be moved to Thursday December 5th.

Remove language segment from url

Vote:
 

Hi

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) - www.example.com
  • Spanish (es) - www.es.example.com
  • German (de) - www.de.example.com

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?


                    
#88163
Jul 03, 2014 12:04
Vote:
 

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()

http://world.episerver.com/Documentation/Class-library/?documentId=cms/7.5/38F749DB
#88454
Jul 14, 2014 13:53
Vote:
 

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

#88656
Jul 23, 2014 9:19
Vote:
 

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

#88663
Jul 23, 2014 11:30
Vote:
 

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

#88997
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.