Log when users open the app via a URL

Don’t show comment count  if the comments are closed and there are no
comments
Minor code clean up