add trailing '/' to webhook urls

This commit is contained in:
Jake McDermott
2019-09-10 16:52:25 -04:00
committed by Jeff Bradberry
parent 41ba5c0968
commit 3bc91f123e
2 changed files with 2 additions and 2 deletions

View File

@@ -192,7 +192,7 @@ export default
const newServiceValue = newValue && typeof newValue === 'object' ? newValue.value : newValue;
const oldServiceValue = oldValue && typeof oldValue === 'object' ? oldValue.value : oldValue;
if (newServiceValue) {
$scope.webhook_url = `${$scope.callback_server_path}${jobTemplateData.url}${newServiceValue}`;
$scope.webhook_url = `${$scope.callback_server_path}${jobTemplateData.url}${newServiceValue}/`;
} else {
$scope.webhook_url = '';
$scope.webhook_key = '';

View File

@@ -200,7 +200,7 @@ export default [
const newServiceValue = newValue && typeof newValue === 'object' ? newValue.value : newValue;
const oldServiceValue = oldValue && typeof oldValue === 'object' ? oldValue.value : oldValue;
if (newServiceValue) {
$scope.webhook_url = `${$scope.baseURL}${workflowJobTemplateData.url}${newServiceValue}`;
$scope.webhook_url = `${$scope.baseURL}${workflowJobTemplateData.url}${newServiceValue}/`;
$scope.enable_webhook = true;
} else {
$scope.webhook_url = '';