Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19353

Webshop Redirect after add to basket not working with lazy sessions.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Legacy > Webshop
    • Labels:
      None

      Description

      In the webshop, it is possible to redirect the user back to a product's page when adding a product to the basket.
      (This behaviour can be configured in site.ini [ShopSettings], RedirectAfterAddToBasket=reload).

      When using lazy sessions, and no session yet exists for the (anonymous) user, the used url will not exist in session data and a redirect is performed to the homepage instead.

      Steps to reproduce
      • Configure shop settings in site.ini: RedirectAfterAddToBasket=reload, clear cache
      • As an anonymous user, add a product (outside homepage) to the basket.

      Result: a redirect will be done to the homepage.
      Repeating the above steps again will work now, since a session is already created.

        Attachments

          Activity

            People

            Assignee:
            nfrp Nicolas Pastorino
            Reporter:
            ji@ez.no João Inácio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: