Rewrites the URL according to the localization rules and a culture name passed as a parameter. By default, MonoX localized URLs has the string of the form "/lng/en-US" and MonoX extracts the culture name from such strings. However, the end user can choose the custom scheme, in case of which the InitializeCulture in the BasePage has to be overriden to set Thread.CurrentCulture and CurrentUICulture to the desired value, and then the IloCalizationUrlRewriter can be implemented to reflect the custom rewriting rules.

Namespace: MonoSoftware.MonoX.Utilities
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public static string RewriteLink(
	string originalLink,
	string cultureName
)
Visual Basic
Public Shared Function RewriteLink ( 
	originalLink As String,
	cultureName As String
) As String
Visual C++
public:
static String^ RewriteLink(
	String^ originalLink, 
	String^ cultureName
)
F#
static member RewriteLink : 
        originalLink : string * 
        cultureName : string -> string 

Parameters

originalLink
Type: System..::..String
URL to rewrite.
cultureName
Type: System..::..String
Culture name.

Return Value

Type: String
Rewritten URL.

See Also