Fix redirect back

Closes #1535
This commit is contained in:
Alex Sherman 2020-02-28 13:54:56 +05:00
parent 6a7f7fc0f2
commit 8cc42cb170
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ module Admin
send_data @zonefile, filename: "#{params[:origin]}.txt"
else
flash[:alert] = 'Origin not supported'
redirect_to :back
redirect_back(fallback_location: root_path)
end
end
end