From 9a1f8d0ad6ae5a49d03bef8cf71b0b12a20e5589 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Wed, 3 Aug 2016 11:23:11 +0100 Subject: [PATCH] Make deleted candidate redirect temporary Just being paranoid --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index 5780f80..7469a5b 100644 --- a/app.rb +++ b/app.rb @@ -202,7 +202,7 @@ end get '/candidates/:id/?' do if @deleted_candidate = DeletedCandidate.get(params[:id]) - redirect "/candidates/#{@deleted_candidate.candidate_id}", 301 # HTTP 301 Moved Permanently + redirect "/candidates/#{@deleted_candidate.candidate_id}", 302 # HTTP 302 Moved Temporarily end if @candidate = Candidate.get(params[:id])