Click or drag to resize
URLHelperRemoveEmptyQueryParameters Method

Note: This API is now obsolete.

Removes empty query parameters. (eg. '?param=' -> '')

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
[ObsoleteAttribute("Method will be removed. Use custom logic instead.")]
public static string RemoveEmptyQueryParameters(
	string query
)

Parameters

query
Type: SystemString
Query string to clean from empty parameters

Return Value

Type: String
Query string with no empty parameters
See Also