You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a route that's matching on /group/:id. The user's at /groups and clicks on a link and they go to /group/1 and that works fine, there's a create() handler in the struct component that queries the data from the backend and displays the page once it's loaded.
Now on that page I put a <Link<AdminRoute> to={ViewGroup { id: "2" }> and the user clicks that. The URL updates to /group/2 but nothing happens otherwise.
Links to OTHER routes/components within the same Router work, (ie /user/2 etc) what am I tripping over? I just want a link that works...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a route that's matching on
/group/:id
. The user's at/groups
and clicks on a link and they go to/group/1
and that works fine, there's acreate()
handler in the struct component that queries the data from the backend and displays the page once it's loaded.Now on that page I put a
<Link<AdminRoute> to={ViewGroup { id: "2" }>
and the user clicks that. The URL updates to/group/2
but nothing happens otherwise.Links to OTHER routes/components within the same
Router
work, (ie/user/2
etc) what am I tripping over? I just want a link that works...I'm using 0.20.0 if it matters.
Code's here if it helps show what I'm doing: https://github.com/kanidm/kanidm/blob/c58ecb23d4bec0a14375462e2ba181e73060e91d/server/web_ui/admin/src/components/admin_groups.rs#L342 but imagine I put an
<Link<AdminRoute> to={AdminRoute::ViewGroup{id_or_name:{group.clone()}}} >
around the{group}
.Beta Was this translation helpful? Give feedback.
All reactions