Document prefix in params now defaults to url_name.
This is because the short name does not have to be url friendly.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/helper/params.py Fri Feb 13 13:33:31 2009 +0000
+++ b/app/soc/views/helper/params.py Fri Feb 13 13:35:31 2009 +0000
@@ -96,7 +96,7 @@
params['url_name'] = params['module_name']
if 'document_prefix' not in params:
- params['document_prefix'] = params['name_short'].lower()
+ params['document_prefix'] = params['url_name']
# Do not expand edit_redirect to allow it to be overriden without suffix
new_params['edit_redirect'] = '/%(url_name)s/edit/%(suffix)s'