department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
281 stars 197 forks source link

Add `returnUrl` to form page config #59012

Closed Mottie closed 1 year ago

Mottie commented 1 year ago

Issue Description

In a CustomPage, the setFormData function also triggers an auto save which sets the returnUrl to the current path. If that CustomPage is usually hidden (depends callback always returns false), then if the user closes the browser and later returns, the returnUrl will point to a hidden page and the save in progress continuation will cause the button click to return to the introduction page. There is no way to fix this "broken" returnUrl without restarting the form.

Front end tasks

Acceptance Criteria

saderagsdale commented 1 year ago

@Mottie this wasn't added to the sprint plan. I'll add it.