Skip to content

Enhancements of localizable routes#1922

Merged
tomasherceg merged 3 commits intomainfrom
fix/localizable-routes
Apr 26, 2025
Merged

Enhancements of localizable routes#1922
tomasherceg merged 3 commits intomainfrom
fix/localizable-routes

Conversation

@tomasherceg
Copy link
Copy Markdown
Member

When using the localizable routes feature, I discovered two unpleasant things:

  • Route groups did not have support localized route fragments.

  • The IsPartialMatch method did not return which culture was matched. I needed that when using ASP.NET Core's Request Localization feature to be able to determine the culture from the URL.

@tomasherceg
Copy link
Copy Markdown
Member Author

I am not sure if we want to merge it in 4.3 because of binary breaking changes (I've added an optional parameter to the
AddGroup method), but I need the feature in one project that may not be ready for migration to DotVVM 5.

@tomasherceg tomasherceg added this to the Version 4.3 milestone Apr 9, 2025
Copy link
Copy Markdown
Member

@exyi exyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

I'd avoid merging this to 4.3. If we need it in the 4-something version, we can release some 4.4-preview version

@tomasherceg tomasherceg force-pushed the fix/localizable-routes branch from 8ad0d05 to 253da7a Compare April 12, 2025 07:43
@tomasherceg tomasherceg changed the base branch from release/4.3 to main April 12, 2025 07:44
@tomasherceg tomasherceg modified the milestones: Version 4.3, Version 5.0 Apr 12, 2025
@tomasherceg
Copy link
Copy Markdown
Member Author

I changed this PR to go to 5.0 to prevent confusion.
Please do not merge yet - I want to add tests for the request culture provider I implemented.

@tomasherceg tomasherceg force-pushed the fix/localizable-routes branch from 04c6e4a to 6c1912f Compare April 26, 2025 12:23
@tomasherceg tomasherceg force-pushed the fix/localizable-routes branch from 6c1912f to af544de Compare April 26, 2025 12:28
@tomasherceg tomasherceg merged commit 779b2f9 into main Apr 26, 2025
14 of 16 checks passed
@tomasherceg tomasherceg deleted the fix/localizable-routes branch April 26, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants