React Router v7 - How Redirect to second Param with dynamic first Param?
10:15 14 Sep 2026

i have follow Router in my App.js

} />

                                            

The NavLink in my Client looks like so:

 
 

The first parameter (:id) is a Username. I would like the second parameter to be automatically appended whenever the first parameter is set.

So:

\@Username automatically rely on \@username\all

I’ve already successfully done this with fixed values, where it works. The problem, however, is this dynamic parameter (:id).

Can anyone help me with that?

javascript reactjs react-router