From 91e07ab660d7419db3eaa238a861456c57fc9040 Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Thu, 8 Jun 2023 14:03:20 +0200 Subject: [PATCH] fix external link allow_other_host --- plugins/links/app/controllers/links_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/links/app/controllers/links_controller.rb b/plugins/links/app/controllers/links_controller.rb index 27615517..df38bee3 100644 --- a/plugins/links/app/controllers/links_controller.rb +++ b/plugins/links/app/controllers/links_controller.rb @@ -20,6 +20,6 @@ class LinksController < ApplicationController return redirect_to root_url, alert: t('.indirect_no_location') unless url end - redirect_to url, status: :found + redirect_to url, status: :found, allow_other_host: true end end