[ckan-changes] commit/ckan: rgrp: [templates/home, bugfix][xs]: fix front page to use url for for link to search page.

Bitbucket commits-noreply at bitbucket.org
Tue Sep 13 12:19:34 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/cca70a49402a/
changeset:   cca70a49402a
user:        rgrp
date:        2011-09-13 14:19:24
summary:     [templates/home,bugfix][xs]: fix front page to use url for for link to search page.

* Had hard-coded /package which led to redirect and loss of query string (meaning search did not work).
affected #:  1 file (42 bytes)

--- a/ckan/templates/home/index.html	Tue Sep 13 12:33:11 2011 +0100
+++ b/ckan/templates/home/index.html	Tue Sep 13 13:19:24 2011 +0100
@@ -116,7 +116,7 @@
         <div class="action-box-inner find"><h1>Find data</h1>
 
-          <form action="/package" method="GET"> 
+          <form action="${h.url_for(controller='package', action='index')}" method="GET"><input name="q" value="" class="search-field" placeholder="Find datasets" /></form> 
           ${g.site_title} contains <a href="${h.url_for(controller='package')}">${c.package_count} datasets</a> that you can

Repository URL: https://bitbucket.org/okfn/ckan/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list