• Robert Speicher's avatar
    Redirect to external issue tracker from `/issues` · a70431f8
    Robert Speicher authored
    Prior, in order to display the correct link to "Issues" in the project
    navigation, we were performing a check against the project to see if it
    used an external issue tracker, and if so, we used that URL. This was
    inefficient.
    
    Now, we simply _always_ link to `namespace_project_issues_path`, and
    then in the controller we redirect to the external tracker if it's
    present.
    
    This also removes the need for the url_for_issue helper. Bonus! 🎉
    a70431f8
issues_controller.rb 6.12 KB