[ckan-changes] commit/ckanextiati: amercader: Fix redirects to avoid loops
Bitbucket
commits-noreply at bitbucket.org
Tue Oct 25 09:51:19 UTC 2011
1 new commit in ckanextiati:
https://bitbucket.org/okfn/ckanextiati/changeset/ab7ec6064633/
changeset: ab7ec6064633
branch: spreadsheet-support
user: amercader
date: 2011-10-25 11:51:11
summary: Fix redirects to avoid loops
affected #: 1 file
diff -r f6e8075c30961d55ce48bf5956acfdcfda3dccdc -r ab7ec60646339ff4a5e8a5e047607a8a879a9e05 ckanext/iati/plugin.py
--- a/ckanext/iati/plugin.py
+++ b/ckanext/iati/plugin.py
@@ -56,7 +56,8 @@
# Redirects needed after updating the datasets name for some of the publishers
map.redirect('/dataset/wb-{code}','/dataset/worldbank-{code}',_redirect_code='301 Moved Permanently')
- map.redirect('/dataset/minbuza_{code}','/dataset/minbuza_nl-{code}',_redirect_code='301 Moved Permanently')
+ map.redirect('/dataset/minbuza_activities','/dataset/minbuza_nl-activities',_redirect_code='301 Moved Permanently')
+ map.redirect('/dataset/minbuza_organization','/dataset/minbuza_nl-organisation',_redirect_code='301 Moved Permanently')
return map
Repository URL: https://bitbucket.org/okfn/ckanextiati/
--
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