           @setState({ loadingSelectedWorkflow: false, workflow })
         else
           console.log "No workflow #{selectedWorkflowID} for project #{@state.project.id}"
+          if @props.location.query?.workflow?
+            @context.router.push "/projects/#{@state.project.slug}/classify"
           @clearInactiveWorkflow(selectedWorkflowID)
             .then(@getSelectedWorkflow(@state.project, @state.preferences))
 

    else
      selectedWorkflowID = @selectRandomWorkflow(project)

    @getWorkflow(selectedWorkflowID)

  selectRandomWorkflow: (project) ->
    linkedWorkflows = project.links.workflows

      # console.log 'Chose random workflow', linkedWorkflows[randomIndex]
      linkedWorkflows[randomIndex]

  getWorkflow: (selectedWorkflowID, activeFilter = true) ->
    query =
      id: "#{selectedWorkflowID}",
      project_id: @state.project.id
    if activeFilter
      query['active'] = true
    apiClient.type('workflows').get(query)
      .catch (error) =>
        console.error error
        # TODO: Handle 404 once json-api-client error handling is fixed.
