X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1b67ad1b832321b794038e8d0f32cf5614fec7f6..1157280cd8ff44da57a37dfc2f5920e53180f6b4:/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'