Skip to content

Commit

Permalink
Merge pull request #285 from sparc-request/jm-redirect-from-sparc
Browse files Browse the repository at this point in the history
JM - (SPARCDashboard) Go to Fulfillment Link should Directly Link to the Corresponding Request Page
  • Loading branch information
Stuart-Johnson committed May 3, 2018
2 parents 1cdea14 + 59126b9 commit df90c24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@
end
end

get 'sub_service_request/:id', to: redirect { |params, request|
protocol_id = Protocol.where(sub_service_request_id: params[:id]).first.id
"/protocols/#{protocol_id}"
}

mount API::Base => '/'

root 'protocols#index'
Expand Down

0 comments on commit df90c24

Please sign in to comment.