• Not Answered

Attribute based routing and xDB

Hi devs,


I am having a problem which seems a known issue or something, In my controller i have used attribute based routing. On of the action i have used "Tracker.Current.Contact.ContactId" but always found "Tracker.Current' = null. I found if i remove attribute based route and use normal register route via startup.cs it starts working. I looked through different opinion on web like this one: "https://jockstothecore.com/attribute-routing-and-xdb-tracking-2/" and "https://community.sitecore.net/technical_blogs/b/sitecorejohn_blog/posts/attribute-routing-with-the-sitecore-asp-net-cms?sc_referrer=https%3a%2f%2fjockstothecore.com%2fattribute-routing-and-xdb-tracking-2%2f" but nothing seems like working.


Am i seriously need to get rid of "Attribute based routing"? Please advice.