mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
add trailing '/' to webhook urls
This commit is contained in:
committed by
Jeff Bradberry
parent
41ba5c0968
commit
3bc91f123e
@@ -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 = '';
|
||||
|
||||
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user