Ionic: "Cannot match any route"

Hello,

On my Ionic app, I get the following error:

Cannot match any route. URL Segment: 'user-profile/edit/[userId]

when trying to go from “user-profile/[userId]” to “user-profile/edit/[userId]” page.
I can’t acces the said page when entering the route manually either.

My “user-profile-routing.module.ts” looks like so:

    const routes: Routes = [
      {
        path: "id",
        component: UserProfilePage,
      }, 
      {
        path: "edit/:id",
        component:EditProfilePage
      },
      {
        path:"prizes-list/:id", 
        component: PrizesListPage
      },
      {
        path: "add-prize/:id",
        component: AddPrizePage
      },
      {
        path: "stats/:id",
        component: StatsPage
      },
    ];

I have the same type of structure in another page which go from “message” page to “message/messages-details/[messageId]” page and have no problem navigating between the two:

    const routes: Routes = [
    
      {
          path: '',
          component: MessagesPage
      },
      {
          path: "messages-details/:id",
          component: MessagesDetailsPage
      },
    ];

What am I missing in my routing module to make it works? Thx for the help !