我正在使用动态路由配置:
foreach (var urn in db.Urunler.Where(x => x.UrunKategori.DilId == item.Id).ToList())
{
routes.MapRoute(
name: "Urun" + urn.Id,
url: @urn.Id + "/" + @urn.UrnUrl,
defaults: new { controller = "Urunler", action = "Detay", id = @urn.Id }
);
}
但是这些网址长期无效。(例如:localhost/123/Product_Name
几小时后激活)
预先感谢您的帮助