SOLVED - How to map dynamic part of url to value in routes?

in my website i pass params as part of url

i tryied this route

var ROUTES =  [

        path: '/post/show/:id/',
        url: "",

and my link like

<a href="/post/show/1/"> read post </a>

but when i click it redirects to

instead of

id doesnt map 1 to :id in url

i looked into docs and couldn’t find anything about this … is that even possible ? or it only works with get parameters like ?

solved it like this

    path: '/post/show/:id/',
    url: "{{id}}/",
1 Like