浏览代码

Make deleted candidate redirect temporary

Just being paranoid
tags/last-sinatra-version
Adrian Short 8 年前
父节点
当前提交
9a1f8d0ad6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app.rb

+ 1
- 1
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])


正在加载...
取消
保存