URL to form

The following has working fine for weeks and now has just completely stopped.

SUBSTITUTE(
CONCATENATE(
"https://www.appsheet.com/start/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXX#appName=",
LinkToForm(
   "Document_Form",
   "Staff",[StaffID],
   "Type","Social Media Post",
   "Date",Today(),
   "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
)
),
"#control","&control")

The URL straight from the view works fine. But I need the various bits pre-populated.

https://www.appsheet.com/start/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXX#view=Document_Form

Can anyone point me in the right direction?