{
"code": 4,
"details": "invalid comment",
"error": "links should start with mailto:, http:// or https://"
}
Submitting a comment with the relative URL:
The answer from the backend is 400 and the same text as above.
We need to alter the frontend to show the problem to the user instead of showing generic error messages, which do not help determine what went wrong and on which side. The preview answer for an unknown 400 error should be as well altered to Invalid comment data. so that the user would know something is off with the comment and not the Remark42 server.
Previewing a comment with the relative URL:
The answer from the backend is
400
:Submitting a comment with the relative URL:
The answer from the backend is
400
and the same text as above.We need to alter the frontend to show the problem to the user instead of showing generic error messages, which do not help determine what went wrong and on which side. The preview answer for an unknown
400
error should be as well altered toInvalid comment data.
so that the user would know something is off with the comment and not the Remark42 server.