From fae3cc2a527c55e37e01c6dfb96c52a1e9c824bc Mon Sep 17 00:00:00 2001 From: Shana Moore Date: Tue, 3 Oct 2023 09:27:53 -0700 Subject: [PATCH] :bug: fix for resource_path error In staging clicking on resources_path would result in an error. This commit fixes that. Issue: - https://github.com/scientist-softserv/adventist-dl/issues/556 --- app/views/_user_util_links.html.erb | 6 ++---- app/views/shared/_footer.html.erb | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/views/_user_util_links.html.erb b/app/views/_user_util_links.html.erb index 458defdc..4c5684ca 100644 --- a/app/views/_user_util_links.html.erb +++ b/app/views/_user_util_links.html.erb @@ -5,10 +5,8 @@ <%= link_to t(:'hyrax.controls.home'), hyrax.root_path, aria: current_page?(hyrax.root_path) ? {current: 'page'} : nil %>
  • > <%= link_to t(:'hyrax.controls.about'), hyrax.about_path, aria: current_page?(hyrax.about_path) ? {current: 'page'} : nil %>
  • - <% if defined?(resources_path) %> <%#= TODO remove when path fix is merged %> -
  • > - <%= link_to t(:'hyrax.controls.resources'), main_app.resources_path, aria: current_page?(main_app.resources_path) ? {current: 'page'} : nil %>
  • - <% end %> +
  • > + <%= link_to t(:'hyrax.controls.resources'), hyku_knapsack.resources_path, aria: current_page?(hyku_knapsack.resources_path) ? {current: 'page'} : nil %>
  • > <%= link_to t(:'hyrax.controls.contact'), hyrax.contact_path, aria: current_page?(hyrax.contact_path) ? {current: 'page'} : nil %>
  • <% if user_signed_in? %> diff --git a/app/views/shared/_footer.html.erb b/app/views/shared/_footer.html.erb index f1e6c1a4..06352aca 100644 --- a/app/views/shared/_footer.html.erb +++ b/app/views/shared/_footer.html.erb @@ -16,7 +16,7 @@