From aac37813779ef81bfcd97756d2e22b517f47d12b Mon Sep 17 00:00:00 2001 From: Ferdinando Primerano Date: Wed, 10 Jun 2020 14:05:53 +0100 Subject: [PATCH] Fix url to be an empty string when all is true --- app/presenters/resources_presenter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/presenters/resources_presenter.rb b/app/presenters/resources_presenter.rb index a3ce80ce8..f86bfdd92 100644 --- a/app/presenters/resources_presenter.rb +++ b/app/presenters/resources_presenter.rb @@ -12,7 +12,7 @@ def resources { title: resources_page.label, - url: all ? false : resources_page.full_path, + url: all ? '' : resources_page.full_path, cards: selected_cards.map do |page| { label: page.label,