X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1b67ad1b832321b794038e8d0f32cf5614fec7f6..84fbf26eed3101008c0c2056a5dc24c4620e36c0:/forum/registry.py diff --git a/forum/registry.py b/forum/registry.py index 4c8df65..871f1e5 100644 --- a/forum/registry.py +++ b/forum/registry.py @@ -71,7 +71,10 @@ class SuperUserSwitchMenuItem(ui.UserMenuItem): ui.register(ui.USER_MENU, ui.UserMenuItem( label=_("edit profile"), - url=lambda u, c: reverse('edit_user', kwargs={'id': c['user'].id}), + url=lambda u, c: reverse('edit_user', kwargs={ + 'id': c['user'].id, + 'slug' : slugify(c['user'].username) + }), span_attrs={'class': 'user-edit'}, weight=0, name='EDIT_PROFILE'