module MilestonesHelper def milestones_filter_path(opts = {}) if @project
namespace_project_milestones_path(@project.namespace, @project, opts)
elsif @group group_milestones_path(@group, opts) end end end