Skip to content

Commit

Permalink
[#1451] use site url to get callback url for datapusher
Browse files Browse the repository at this point in the history
  • Loading branch information
kindly authored and amercader committed Jan 27, 2014
1 parent 82e8d3c commit 1900f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/datapusher/logic/action.py
Expand Up @@ -45,9 +45,9 @@ def datapusher_submit(context, data_dict):

datapusher_url = pylons.config.get('ckan.datapusher.url')

callback_url = p.toolkit.url_for(
callback_url = pylons.config['ckan.site_url'].rstrip('/') + p.toolkit.url_for(
controller='api', action='action', logic_function='datapusher_hook',
ver=3, qualified=True)
ver=3)

user = p.toolkit.get_action('user_show')(context, {'id': context['user']})

Expand Down

0 comments on commit 1900f2d

Please sign in to comment.