I want to implement a routing system that admits a dot in the url. Currently I handle urls like:
mydomain/User/Details/raguilar
but if the username has a dot, then it is generated as:
mydomain/User/Details?username=r.aguilar
I tried to add the following route:
routes.MapRoute(
name: "Users",
url: "User/{action}/{username}",
defaults: new { controller = "User", username = UrlParameter.Optional },
constraints: new { username = @"\w+\.?\w+" }
);
and all seems to be ok, but when I clicked on the url I received an error that says that the related resource is not found or something like that.
Is there some way to fix this issue?