-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid route generation with multiple parameters #318
Comments
It seems to be correct behavior - you are passing an empty string to the parameter. Maybe we could just validate the parameter for |
I think we should replace sequences of multiple slashed with just one slash in the URL and make sure that it will match the route correctly. |
Removing double slash would not help: I have just tried what MVC does and it says that no matching route was found, when the values are empty. If the route parameters would be optional, MVC returns |
We need someone to do a research of these situations and compare how MVC and DotVVM behaves. |
@exyi You were fixing something in the |
No, i have not added a step to remove double slashes |
We've discussed this and we can validate the parameter constraints when generating the link (when the page is compiled), and maybe generate warnings when the parameter is data-bound. |
My route is defined as follows:
I'm calling it from RouteLink control:
The resulting URL is
/kalendar//
instead of just/kalendar/
.The text was updated successfully, but these errors were encountered: