I was using a routing pattern. Recently, I've changed the pattern. Now, I'm struggling with an issue that annoys me.
I'd like to catch the following URL:
http://www.mysite.com/news_title/-1322.html
routing pattern:
routes.MapRoute(
name: "haber2",
url: "{noFollow}-{id}.html",
defaults: new { controller = "Anasayfa", action = "HaberID" },
constraints: new {id = "\\d+"}
);
While clicking the link below, I'm facing with not found. How to overcome this problem?
Any helps, tricks is very appreciated.