Redirect to /donate instead of throwing an exception

Created on 7 May 2021, over 3 years ago
Updated 2 September 2023, about 1 year ago

Problem/Motivation

Some routes produce an exception "Order Items not properly initialized" when the order doesn't have any items. It would be nice to handle this more gracefully.

Steps to reproduce

This is one example, there may be others.

  1. Create an order and progress to billing stage. This generates an order ID and puts it in the URL.
  2. Go to /cart and remove the donation
  3. Go to /donation/{order_id}/billing

The above error is produced.

Proposed resolution

Redirect the user to /donate instead to start the order process again.

This depends on πŸ› Emptying cart causing an error on donate page Fixed getting in first.

Remaining tasks

  1. Decide if it's a good solution
  2. Resolve πŸ› Emptying cart causing an error on donate page Fixed
  3. Code it

User interface changes

API changes

Data model changes

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia imclean Tasmania

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024