I am using Zen barcode framework with MVC, The barcode is rendering just fine but due to adding a new route for to support the barcode in the Route.config
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
Allow extensionless handling of barcode image URIs
routes.Add(
"BarcodeImaging",
new Route(
"Barcode/{id}",new BarcodeImageRouteHandler()));
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
The problem is my action link URLs don't work correctly anymore, they use the barcode route config instead of the default MVC routing
My action Links
@Html.ActionLink("Edit", "Edit", "RequestTests",new { id=item.RequestTestID },null) |
@Html.ActionLink("Invoice", "Details", new { id=item.RequestTestID }) |
@Html.ActionLink("Delete", "Delete", new { id=item.RequestTestID })