When assignmentId does not exist in the url, also set the mode to preview