(url, path)
| 632 | * @return {string} |
| 633 | */ |
| 634 | export function appendPathToUrl(url, path) { |
| 635 | const pathname = url.pathname.replace(/\/?$/, '/') + path.replace(/^\//, ''); |
| 636 | return url.origin + pathname + url.search + url.hash; |
| 637 | } |
no test coverage detected