Fixes the null PublishName problem, ensures the quey strings are not replaced when selecting a doc type
This commit is contained in:
@@ -1147,7 +1147,8 @@ namespace Umbraco.Core
|
||||
/// <param name="text">The text to filter.</param>
|
||||
/// <returns>The safe url segment.</returns>
|
||||
public static string ToUrlSegment(this string text)
|
||||
{
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(text)) throw new ArgumentException("message", nameof(text));
|
||||
return Current.ShortStringHelper.CleanStringForUrlSegment(text);
|
||||
}
|
||||
|
||||
@@ -1158,7 +1159,10 @@ namespace Umbraco.Core
|
||||
/// <param name="culture">The culture.</param>
|
||||
/// <returns>The safe url segment.</returns>
|
||||
public static string ToUrlSegment(this string text, CultureInfo culture)
|
||||
{
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(text)) throw new ArgumentException("message", nameof(text));
|
||||
if (culture == null) throw new ArgumentNullException(nameof(culture));
|
||||
|
||||
return Current.ShortStringHelper.CleanStringForUrlSegment(text, culture);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user