X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1b67ad1b832321b794038e8d0f32cf5614fec7f6..7deaf42044d82ea939afa0b72b67c1e8877925c8:/forum/registry.py?ds=sidebyside 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'