Skip to content

Commit

Permalink
Fix CTA button path when displayed somewhere else than the home page (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
ahukkanen authored Jan 15, 2025
1 parent 1a57887 commit 2d639be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decidim-core/app/helpers/decidim/cta_button_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def cta_button
# Finds the CTA button path to reuse it in other places.
def cta_button_path
if current_organization.cta_button_path.present?
current_organization.cta_button_path
"/#{current_organization.cta_button_path}"
elsif Decidim::ParticipatoryProcess.where(organization: current_organization).published.any?
decidim_participatory_processes.participatory_processes_path
elsif current_user
Expand Down

0 comments on commit 2d639be

Please sign in to comment.