Use same location hash after renaming site item
authorThierry Florac <thierry.florac@onf.fr>
Mon, 19 Nov 2018 11:54:44 +0100
changeset 1103 c691e4bfbe19
parent 1102 4f2e7c57b636
child 1104 8f073ae1b302
Use same location hash after renaming site item
src/pyams_content/shared/common/zmi/rename.py
--- a/src/pyams_content/shared/common/zmi/rename.py	Fri Nov 16 15:37:03 2018 +0100
+++ b/src/pyams_content/shared/common/zmi/rename.py	Mon Nov 19 11:54:44 2018 +0100
@@ -105,7 +105,7 @@
         if changes:
             return {
                 'status': 'redirect',
-                'location': absolute_url(self.context, self.request, 'admin'),
+                'location': absolute_url(self.context, self.request, 'admin##'),
                 'smallbox': {
                     'status': 'success',
                     'message': self.request.localizer.translate(self.successMessage)