Commit 54feaca9 authored by MrZYX's avatar MrZYX

redirect to the start page if there's no referer in photos#show

parent b4b3fd2b
......@@ -164,7 +164,11 @@ class PhotosController < ApplicationController
respond_with @photo
else
redirect_to :back
begin
redirect_to :back
rescue
redirect_to aspects_path
end
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment