Skip to content

Commit

Permalink
Merge pull request #4449 from tino097/4437-wrong-link-to-org-in-bread…
Browse files Browse the repository at this point in the history
…crumb

Fix urls in the breadcrumb
  • Loading branch information
wardi committed Sep 11, 2018
2 parents 0cfd687 + eeaafd5 commit f3a9c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/templates/package/base.html
Expand Up @@ -12,8 +12,8 @@
{% if pkg.organization %}
{% set organization = h.get_translated(pkg.organization, 'title') or pkg.organization.name %}
{% set group_type = pkg.organization.type %}
<li>{% link_for _('Organizations'), controller='organization', action='index', named_route=group_type + '_index' %}</li>
<li>{% link_for organization|truncate(30), controller='organization', action='read', id=pkg.organization.name, named_route=group_type + '_read' %}</li>
<li>{% link_for _('Organizations'), named_route='organization.index' %}</li>
<li>{% link_for organization|truncate(30), named_route='organization.read', id=pkg.organization.name %}</li>
{% else %}
<li>{% link_for _('Datasets'), named_route='dataset.search' %}</li>
{% endif %}
Expand Down

0 comments on commit f3a9c0d

Please sign in to comment.