<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1651: Explicit link mapper</title>
    <link>http://localhost/ticket/1651</link>
    <description>&lt;p&gt;
In this commit &lt;a class="ext-link" href="https://github.com/okfn/ckan/commit/1772a5c"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/commit/1772a5c&lt;/a&gt; John Glover set map.explicit=True in ckan/config/routing.py.
&lt;/p&gt;
&lt;p&gt;
The reason this was done was to avoid links collecting parameters.
e.g. if you were on page /dataset/{id}/resource/{resource_id} then by default all the links on that page generated by url_for (Routes) would include the id and resource_id parameters as well. To avoid this, you had to go through all the links and add id=None and resource_id=None to the url_for parameters.
&lt;/p&gt;
&lt;p&gt;
When map.explicit was changed to True, the value of the controller, action, id and any parameters were no longer automatically carried over into the generated links for the page. So previously links within the same controller didn't need to specify the controller (for example), but now they did. So when we did this we also had to fix up links that weren't explicit:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://github.com/okfn/ckan/commit/88e88380f61965f58fb105095e76a78673ce3e2c"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/commit/88e88380f61965f58fb105095e76a78673ce3e2c&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="closed ticket" href="http://localhost/ticket/1501" title="defect: Pagination links broken (closed: fixed)"&gt;#1501&lt;/a&gt; Pagination links
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://github.com/okfn/ckan/commit/52d71102d9b07693ea240d4a66e8adb43e515414"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/commit/52d71102d9b07693ea240d4a66e8adb43e515414&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
John made the config change on 5/11/2011 which was merged to master &lt;a class="ext-link" href="https://github.com/okfn/ckan/commit/5a01e67"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/commit/5a01e67&lt;/a&gt; 21/11/2011. The related fixes mentioned were in within the same week. This all went into release 1.5.1. The requirement
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1651</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Mon, 16 Jan 2012 10:39:53 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/1651#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1651#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1651?action=diff&amp;amp;version=1"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Mon, 16 Jan 2012 10:50:05 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1651#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1651#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>