From 3be8258f849a69bb6a8659187213b247bd228696 Mon Sep 17 00:00:00 2001
From: anonymous <anonymous>
Date: Mon, 3 Jun 2019 13:49:22 +0200
Subject: [PATCH] fix wrong resource url

---
 ckanext/odsh/templates/package/snippets/resource_item.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ckanext/odsh/templates/package/snippets/resource_item.html b/ckanext/odsh/templates/package/snippets/resource_item.html
index 20daf85e..295b3314 100644
--- a/ckanext/odsh/templates/package/snippets/resource_item.html
+++ b/ckanext/odsh/templates/package/snippets/resource_item.html
@@ -1,7 +1,7 @@
 {% set url_action = 'resource_edit' if url_is_edit and can_edit else 'resource_read' %}
 {% set url = h.url_for(controller='package', action=url_action, id=pkg.name, resource_id=res.id) %}
 
-{% set download = res.url or url %}
+{% set download = url or res.url%}
 {% set res_details = h.odsh_get_resource_details(res.id) %}
 
 <li class="resource-item" data-id="{{ res.id }}">
-- 
GitLab