     app.views.application.scrollTo $('#elections').offset().top
       
   candidatesList: (namespace)->
+    # reload the page if no election is loaded
+    window.location.reload() unless app.models.election.id
+
     @trackPageview()
     app.models.election.candidacies.unselect()
     

    app.views.application.scrollTo $('#tags').offset().top
    
  comparison: (namespace, candidacies, tagNamespace)->
    @trackPageview()
    # redirect if /
    unless tagNamespace

    app.views.application.scrollTo $('#candidacies').offset().top
    
  tagsList: (namespace, names)->
    # reload the page if no election is loaded
    window.location.reload() unless app.models.election.id

    @trackPageview()
    # redirect if /
    unless names
