I am trying to implement my own visitor group criterion, pretty similar to the ViewPageCriterion provided by EPiServer. In the criterion, I collect the page link whenever a user enters a page:
private void criterionEvents_VisitedPage(object sender, CriterionEventArgs e)
PageReference pageLink = e.GetPageLink();
// more stuff
It works in most cases, but when I enter a page from the EPiServer Commerce Catalog, the page link returned from GetPageLink() is the front page. Is this a bug? Is it possible to make a workaround?