Try our conversational search powered by Generative AI!

Wrong page link from CriterionEventArgs when visiting Commerce pages

Vote:
 

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?

#121531
May 13, 2015 10:11
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.