Skip to content

Commit

Permalink
Fix url_for routing to point to harvester blueprint.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelboca committed Mar 22, 2023
1 parent c68eedf commit 631c7f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckanext/harvest/utils.py
Expand Up @@ -633,7 +633,7 @@ def job_abort_view(source, id):
return tk.abort(500, msg)

return h.redirect_to(
h.url_for('{0}.admin'.format(DATASET_TYPE_NAME), id=source))
h.url_for('harvester.admin', id=source))


def refresh_view(id):
Expand Down Expand Up @@ -663,7 +663,7 @@ def refresh_view(id):
h.flash_error(msg)

return h.redirect_to(
h.url_for('{0}.admin'.format(DATASET_TYPE_NAME), id=id))
h.url_for('harvester.admin', id=id))


def clear_view(id):
Expand All @@ -680,7 +680,7 @@ def clear_view(id):
h.flash_error(msg)

return h.redirect_to(
h.url_for('{0}.admin'.format(DATASET_TYPE_NAME), id=id))
h.url_for('harvester.admin', id=id))


def delete_view(id):
Expand All @@ -701,7 +701,7 @@ def delete_view(id):
h.flash_success(_('Harvesting source successfully inactivated'))

return h.redirect_to(
h.url_for('{0}.admin'.format(DATASET_TYPE_NAME), id=id))
h.url_for('harvester.admin', id=id))
except tk.ObjectNotFound:
return tk.abort(404, _('Harvest source not found'))
except tk.NotAuthorized:
Expand Down

0 comments on commit 631c7f2

Please sign in to comment.