diff --git a/app/controllers/terms_controller.rb b/app/controllers/terms_controller.rb index c8baa1d..3049441 100644 --- a/app/controllers/terms_controller.rb +++ b/app/controllers/terms_controller.rb @@ -12,7 +12,7 @@ def index def show @terms = Term.includes(:dictionary, :stem, descriptions: %i[examples synonyms]).where(name: params[:id]).order(:dictionary_id) - redirect_back(fallback_location: "/") if @terms.empty? + return redirect_back(fallback_location: "/") if @terms.empty? session[:last_page] = request.url end