diff --git a/client/components/Postman/Postman.js b/client/components/Postman/Postman.js index 28b5e931..30024615 100755 --- a/client/components/Postman/Postman.js +++ b/client/components/Postman/Postman.js @@ -202,11 +202,16 @@ export default class Run extends Component { pathParam.forEach(item => { path = path.replace(`:${item.name}`, item.value || `:${item.name}`); }); + if(urlObj.pathname){ + if(urlObj.pathname[urlObj.pathname.length - 1] !== '/'){ + urlObj.pathname += '/' + } + } const href = URL.format({ protocol: urlObj.protocol || 'http', host: urlObj.host, - pathname: urlObj.pathname ? URL.resolve(urlObj.pathname, path) : path, + pathname: urlObj.pathname ? URL.resolve(urlObj.pathname, '.' + path) : path, query: this.getQueryObj(query) });