Skip to content

Fix broken user links #1264

@andypols

Description

@andypols

Describe the bug
The links to users in PushDetails and RepoDetails currently point to /dashboard/user/user-id, but the React Router expects them to be under /dashboard/admin/user/:id.

Expected behaviour
I can see the reasoning for keeping the list of users as an admin feature. However, since the admin routes can restricted to admin users via uiRouteAuth config, these links to user profiles don’t work for non-admin users — which feels wrong.

My inclination is to make /user and /user/:id non-admin routes, so that links to user profiles work universally.

Question
What do others think about this change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions