From 5ff7c4e81bb37d4f320b4aacfc27bd3cf287c711 Mon Sep 17 00:00:00 2001 From: Torsten Date: Wed, 18 Jan 2023 23:53:53 +0200 Subject: [PATCH] fix no page --- app/controllers/merged/view_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/merged/view_controller.rb b/app/controllers/merged/view_controller.rb index 5780d47..2fb9e4e 100644 --- a/app/controllers/merged/view_controller.rb +++ b/app/controllers/merged/view_controller.rb @@ -3,6 +3,7 @@ module Merged def page @page = Page.find_by_name(params[:id]) + redirect_to "/" , alert: "No page #{params[:id]}" unless @page end end