I have the following link:
/v1/catalogue/folders/{catalogueId:[0-9]+}/translations/{translationId:[0-9]+}/
and the following data:
catalogueId: 31
translationId: 4
Now I'd like to change the part between the curly brackets with the value of the data-object. So the link needs to look like this:
/v1/catalogue/folders/31/translations/4/
Is there a way in Javascript to accoomplish this? If yes, what is that way?
String.prototype.replace(), as a hint. But first, is that link in your browser's address bar (are you on the page that link represents), or is it a string somewhere else in your document?