Fix 404 error while displaying json files.

Created by: hiroponz

It uses params[:id] instead of request.fullpath. It should fix #3132 (closed).

合并请求报告