How to make Language Selector send URL Route Values?

Posted by Community Admin on 05-Aug-2018 14:20

How to make Language Selector send URL Route Values?

All Replies

Posted by Community Admin on 04-Apr-2011 00:00

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

            

Posted by Community Admin on 07-Apr-2011 00:00

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

This thread is closed