Flowrouter issue


I’m having an issue with flowrouter, I was hoping someone could help me.

Lets say i have a route for user profile, and i put this in my header for the user to access:

loggedIn.route('/profile', {
    name: "profile",
    action() {
        renderMainLayout(<Profile />);

And now when I’m in a different route that takes parameters:

loggedIn.route('/team/manage/:teamID', {
    action(params, queryParams) {
    renderMainLayout(<TeamManage />);

and I try to click on profile, instead of taking me to localhost:3000/profile… its trying to do localhost:3000/team/manage/profile.

How do I escape this situation?


Nevermind, I wasn’t even linking to the route properly…that was the problem. Oops.