Make browse not found pages consistent

This commit is contained in:
Anton Khorev 2025-01-06 20:15:08 +03:00
parent 97b14ce22a
commit 68e55078ec
19 changed files with 56 additions and 40 deletions

View file

@ -10,6 +10,6 @@ class OldRelationsController < OldElementsController
@type = "relation"
@feature = OldRelation.preload(:old_tags, :changeset => [:changeset_tags, :user], :old_members => :member).find([params[:id], params[:version]])
rescue ActiveRecord::RecordNotFound
render :action => "not_found", :status => :not_found
render "browse/not_found", :status => :not_found
end
end