Skip to content

Commit

Permalink
take name of the controller when computing search url
Browse files Browse the repository at this point in the history
  • Loading branch information
deniszgonjanin committed Aug 27, 2013
1 parent 784040e commit 5cfbd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/controllers/package.py
Expand Up @@ -57,7 +57,7 @@ def url_with_params(url, params):

def search_url(params, package_type=None):
if not package_type or package_type == 'dataset':
url = h.url_for(controller='package', action='search')
url = h.url_for(controller=c.controller, action='search')
else:
url = h.url_for('{0}_search'.format(package_type))
return url_with_params(url, params)
Expand Down

0 comments on commit 5cfbd03

Please sign in to comment.