cds-snc / platform-forms-client

NextJS application that serves the public-facing website for Forms
https://forms-staging.cdssandbox.xyz/
MIT License
34 stars 13 forks source link

Deleted form shows error page that leads end-user trying to fill out form to Support #3858

Closed anikbrazeau closed 1 week ago

anikbrazeau commented 3 months ago

Description

When a published form is deleted without removing the links that lead to it, end users might end up on at a "Page not found" destination with the call to action to contact Support.

This puts our support team in a difficult position and could lead to frustration among users because we are unable to help them.

Steps to reproduce

  1. Go to GC Forms
  2. Publish a form
  3. Keep the URL link noted
  4. Delete the published form
  5. Go to the URL link
  6. See error page with link to support

Details

Expected behaviour

The end user filling out a form (external) should not be directed to support, this should only be a path for form builders using the application interface to build forms.

Screenshots or videos

image.png

Additional context

https://gcdigital.slack.com/archives/C03T4FAE9FV/p1718715703720119?thread_ts=1718715177.909819&cid=C03T4FAE9FV

jprince-cds commented 3 months ago

Suggestion: The "Back to Home" link should be modified to go back to the previous page they came from (if possible) instead of leading them further within GC Forms.

srtalbot commented 1 week ago

Information from this card is duplicated in: https://app.zenhub.com/workspaces/gcforms-60cb8929764d71000e481cab/issues/gh/cds-snc/platform-forms-client/686