More in this section

Forums / Developing with Sitefinity / [Provider]guid and localised url

[Provider]guid and localised url

2 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    28 Sep 2009
    Link to this post
    Hi,
    Using gerUrl i have some problems to get my localised pages .

    GetUrl by NewsView return localised "en"
    http://localhost:51976/Project/en/Productos/09-09-27/hello.aspx by NewsView

    using
    this.PageUrl is a ~/Services.aspx selected from Localised Dialog cmsPage selector
    ResolveUrl(this.PageUrl) + GetItemUrl("[" + this.ProviderName + "]" + content.ID.ToString(), true);
    http://localhost:51976/Project/Products/09-09-27/hello.aspx by SimpleControl

    Some better way to get my localised paths.

    Thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    29 Sep 2009
    Link to this post
    Hi Pierre,

    You can use UrlHelper class. Sample code is shown below:

    Response.Write(UrlHelper.ResolveUrl(page1.DefaultUrl.Url) 

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered