ckan/ckan — pull request #1882 by amercader (2014-08-13 11:35:55+00:00)
Title: Incorrect link in Organization snippet on dataset page

![screenshot from 2014-08-13 12 16 09](https://cloud.githubusercontent.com/assets/200230/3904593/7c95ee52-22db-11e4-8d7c-444948e824cb.png)

Looks like if you define a variable inside a with statement on Jinja2 this variable is not available inside a block:

```html
{% with truncate=truncate or 0, url=h.url_for(controller='organization', action='read', id=organization.name) %}

{% block info %}

{% if has_context_title %}

{{ _('Organization') }}

{% endif %}

{% block inner %}
{% block image %}

...

```
This means an empty href, which effectively links to the same dataset page.