How to make Language Selector send URL Route Values? - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

How to make Language Selector send URL Route Values?

  • How to make Language Selector send URL Route Values?
  • I have a Language Selector on my page. When I am in the URL

    /product/<code>

    And click to change the language I get redirected to /product

    My page is /product and I am getting the parameter with

    var pageParams = Page.RouteData.Values["Params"as string[];
    
    
    Is there a way I can keep the parameters when I change the language?


    public class LanguageSelector : SimpleScriptView
    
    Name: Telerik.Sitefinity.Web.UI.LanguageSelector
    Assembly: Telerik.Sitefinity, Version=4.0.1210.0
    
                

  • Hello Bruno,

    Can you provide some more details about the result you would like to achieve. Also you can use GetUrlParameters  that is an extension method of ControlExtensions.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items