Skip to content

Commit

Permalink
Fixed issues in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasherceg committed Aug 1, 2024
1 parent 21f7f18 commit 44793d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Framework/Framework/Routing/LocalizedDotvvmRoute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static void ValidateCultureName(string cultureIdentifier)
public bool IsPartialMatch(string url, [MaybeNullWhen(false)] out RouteBase matchedRoute, [MaybeNullWhen(false)] out IDictionary<string, object?> values)
{
RouteBase? twoLetterCultureMatch = null;
IDictionary<string, object?> twoLetterCultureMatchValues = null;
IDictionary<string, object?>? twoLetterCultureMatchValues = null;

foreach (var route in localizedRoutes)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Samples/Common/DotvvmStartup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private static void AddRoutes(DotvvmConfiguration config)
config.RouteTable.Add("FeatureSamples_Localization_Globalize", "FeatureSamples/Localization/Globalize", "Views/FeatureSamples/Localization/Globalize.dothtml", presenterFactory: LocalizablePresenter.BasedOnQuery("lang"));
config.RouteTable.Add("FeatureSamples_CustomPrimitiveTypes_Basic", "FeatureSamples/CustomPrimitiveTypes/Basic/{Id?}", "Views/FeatureSamples/CustomPrimitiveTypes/Basic.dothtml");

config.RouteTable.Add("FeatureSamples_Localization_LocalizableRoute", "FeatureSamples/Localization/LocalizableRoute/{lang?}", "Views/FeatureSamples/Localization/LocalizableRoute.dothtml",
config.RouteTable.Add("FeatureSamples_Localization_LocalizableRoute", "FeatureSamples/Localization/LocalizableRoute", "Views/FeatureSamples/Localization/LocalizableRoute.dothtml",
localizedUrls: new LocalizedRouteUrl[] {
new("cs-CZ", "cs/FeatureSamples/Localization/lokalizovana-routa"),
new("de", "de/FeatureSamples/Localization/lokalisierte-route"),
Expand Down

0 comments on commit 44793d1

Please sign in to comment.