Question: I'm using router.navigate like so:

```
this.router.navigate([link, params])

```

where link is the url and params is an object that contains the key/values of the parameters. This works however it's not exactly what I want to do.

I am working with a primeNG datatable which is in a custom component. I want to just give it a linkMap so that I can link specific columns in the table using a parameterized URL template like so:

id = /detail/:id

in my table I will check the map to see if the particular column needs to be linked (i.e. "id") then grab the URL. What I want to do then is to substitute :id for the data that is in context for that row, such as /detail/5 etc. This is simple enough but what I am currently getting is:

/detail:id;id=5

How do I substitute the :id itself to the value 5? I can do it via regexp but would rather use Angular built-in functionality if it exists.

To Clarify: I have a key/value map and a string with **named** parameters, I need to do an in place substitution:

/detail/:id/:code/:subcode/:id/:id, {id: 5, code: 'PRG', subcode: 'AB'} should result in the URL /detail/5/PRG/AB/5/5

I can't supply the arguments in the required order i.e. [5, 'PRG', 'AB', 5, 5] because that would require me to figure out the order of the parameters. I need Angular to do this for me.

Answer: 
For Intellij 2018.1 and i guess for early versions, the Run configuration by default gets the **Glue** 'cucumber.api.spring' , you should switch it for 'com.foreach.cuke'  

Go to '**Edit Configurations**' - '**Cucumber**' - **Glue:** com.foreach.cuke ...
As far as **`NoClassDefFoundError`** is concerned, it arises due to mismatch between the following components :

1. **`JDK`** version - **`Solution`** - Keep the `JDK` version updated to the recent releases.
2. **`JUnit`** version - **`Solution`** - Keep the `JUnit` version in sync with `cucumber` version.
3. **`Selenium`** version - **`Solution`** - Update the **`Selenium`** version to the recent release versions.
4. **`WebDriver Binary`** version - **`Solution`** - Update the **`WebDriver`** version to the recent release versions.
5. **`Web Browser Binary`** version - **`Solution`** - Update the **`Web Browser`** version to the recent release versions.