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

in my website i pass params as part of url
like

site.com/post/show/1
site.com/post/show/2
site.com/post/show/3

i tryied this route

var ROUTES =  [

    {
        path: '/post/show/:id/',
        url: "site.com/post/show/:id/",
    },
];

and my link like

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

but when i click it redirects to

site.com/post/show/:id

instead of
site.com/post/show/1

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 site.com?id=1 ?

solved it like this

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