Skip to content

Commit

Permalink
Merge pull request #8035 from blagojabozinovski/activity-fix
Browse files Browse the repository at this point in the history
Default to dataset type in new resource template
  • Loading branch information
wardi committed Jan 30, 2024
2 parents ae17260 + 653ef50 commit 79fc89a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set dataset_type = request.view_args.package_type %}
{% set dataset_type = request.view_args.package_type or 'dataset' %}
{% set pkg_url = h.url_for(dataset_type ~ '.read', id=change.pkg_id) %}
{% set resource_url = h.url_for(dataset_type ~ '_resource.read', id=change.pkg_id, resource_id = change.resource_id, qualified=True) %}

Expand Down

0 comments on commit 79fc89a

Please sign in to comment.