 # This was part of Zoom.it's original UI / informal website API.
 #
 @getHomePage = (req, res, _) =>
-    if req.query.url
+    if req.query.url?
         @submitURL req, res, _
     else
         res.render 'home'

@submitURL = (req, res, _) ->
    url = req.param 'url'
    if not url
        errorHTML res, 404, Errors.MISSING_ID_OR_URL
        return
    if not validateURL url
        errorHTML res, 400, Errors.MALFORMED_URL


    content = Content.getById id, _
    if not content?
        # FIXME: We should still be returning the embed JS here;
        # it should just display this error message.
        errorHTML res, 404, Errors.NO_CONTENT_WITH_ID.replace '{ID}', id
        return

