I'd prefer to just use string concatenation here:

```js
'/cookie/' + cookieName
```