From 441f20a80a500d1b59b878be1497a67483e9ea7c Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Wed, 3 Jan 2024 12:32:00 +0100 Subject: [PATCH] Refs #36849 - Correct kwargs handling in documentation_button Fixes: b566ea8ab3c5 ("Fixes #32848 - Support linking to docs.theforeman.org") --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 72b918610d6..98aa2cc2c85 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -291,7 +291,7 @@ def show_parent?(obj) end def documentation_button(section = "", options = {}) - url = documentation_url section, options + url = documentation_url(section, **options) link_to(icon_text('help', _('Documentation'), :kind => 'pficon'), url, :rel => 'external noopener noreferrer', :class => 'btn btn-default btn-docs', :target => '_blank') end