From a8cf725312d245d8d1f1df0fff22718975ce249e Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 20 Aug 2026 12:50:30 +0200 Subject: Add redirect ui in in nodes#edit and apply some minor cleanup Also give search inputs a magnifier and a clear control: input_group wraps a field with an icon and, where clearing is meaningful, a button that empties it and any hidden companion named by data-clears. Clean up some inconistency between field hints presented as p and as span. Remove stray console.log. --- app/controllers/content_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/controllers/content_controller.rb') diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb index 8be4bfbd..debb69b9 100644 --- a/app/controllers/content_controller.rb +++ b/app/controllers/content_controller.rb @@ -14,6 +14,11 @@ class ContentController < ApplicationController expires_in 20.minutes, :public => true if @page and @page.public? + if (target = @page.redirect_target) + return redirect_to(target.internal? ? content_path(target.node.unique_name) : target.url, + :status => @page.redirect_status) + end + render( :template => @page.valid_template, :layout => true -- cgit v1.3