Submission of a form


I got a weird error blocking my ability to submit a booking form ( even after I upgraded from 0.88 to 0.92 )

The console error is

Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0

and the culprit is this bit of baseof.html:

<!DOCTYPE html><!--[if IE 8]> <html class="ie ie8"> <![endif]--><!--[if IE 9]> <html class="ie ie9"> <![endif]-->
<html lang="en-gb">

I am not keen to remove the IE references as unfortunately many customers may use it.
If I delete those I get another problem:

404 page not found

with this javascript error even though I have 404.html in

Uncaught (in promise) SyntaxError: Unexpected token p in JSON at position 4

Any ideas how best to deal with this? This appears more JS related than Hugo but it all comes with the engine.


Yes, it is. You might take your question to Stack Overflow, etc.