Anyone have this working in 4.2?
I have PrepareProductBreadcrumbModel() from ProductModelFactory.cs overriden to take advantage of
_webHelper.GetUrlReferrer(), however I hit a roadblock in that not every browser includes the URL slug path in their request header.
See screenshots below for difference between Firefox (dark) versus Edge (light).
I know there are various security settings in Firefox to control how the referrer URL is sent, however I cannot get Firefox on 3 different computers to send the category, or any URL slug for that matter. It's always just the domain without any path.
What is more odd, is that Firefox
does send the category path in my live site on the same server, which is an ancient classic ASP site in desperate need of upgrade to NopCommerce. However, I checked the demo store on NopCommerce.com and I cannot get the URL slug sent in the header there either. Could it be the subdomain? Can anyone confirm their site does send the URL slug in Firefox?
I thought about trying to capture the category URL in a view with ViewBag or Session, but that would be considerably more involved to pass it all the way down to the factory method. I don't have any other ideas for how to get this to work.
Firefox for my staging site:
Edge:
and NopCommerce.com for reference: