diff --git a/runtime/utils/index.js b/runtime/utils/index.js index 645636e0..2bf57973 100644 --- a/runtime/utils/index.js +++ b/runtime/utils/index.js @@ -149,7 +149,7 @@ export function populateUrl(path, params, inheritedParams) { const queryString = getQueryString(path, params) for (const [key, value] of Object.entries(allParams)) - path = path.replace(`:${key}`, value) + path = path.replace(new RegExp(`:${key}(\/|$)`), value) return `${path}${queryString}` }