Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Ramstack.HtmxToolkit/TagHelpers/HtmxUrlTagHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
using Microsoft.AspNetCore.Razor.TagHelpers;
using Microsoft.AspNetCore.Routing;

using Ramstack.HtmxToolkit.Collections;

namespace Ramstack.HtmxToolkit.TagHelpers;

/// <summary>
Expand Down Expand Up @@ -136,7 +138,7 @@ public sealed class HtmxUrlTagHelper(IUrlHelperFactory factory) : TagHelper
[HtmlAttributeName(RouteValuesDictionaryName, DictionaryAttributePrefix = RouteValuesPrefix)]
public IDictionary<string, string> RouteValues
{
get => _routeValues ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
get => _routeValues ??= new SmallDictionary<string, string>(StringComparer.OrdinalIgnoreCase);
set => _routeValues = value;
}

Expand Down
Loading