So I have this route
routes.MapRoute(
name: "GetLinkJSON",
url: "getlinkjson/{property}/{version}/{friendlyFileName}",
defaults: new {controller = "Home", action = "GetLinkJSON"}
);
and this controller method
public ActionResult GetLinkJSON(string property, int version, string friendlyFileName, string message, string key)
URLs like this work well
/getlinkjson/elms/1/testdisc096img?message=foo&key=bar
but this fails to match (when I add the . back into the friendlyFileName param)
/getlinkjson/elms/1/testdisc096.img?message=foo&key=bar
I tried changing {friendlyFileName} to {*friendlyFileName} to be a catch all, but no luck.