diff --git a/endpoints/api/trigger.py b/endpoints/api/trigger.py index 49f67c26e..56bc061dc 100644 --- a/endpoints/api/trigger.py +++ b/endpoints/api/trigger.py @@ -205,10 +205,7 @@ class BuildTriggerActivate(RepositoryParamResource): 'write') try: - repository_path = '%s/%s' % (trigger.repository.namespace_user.username, - trigger.repository.name) - path = url_for('webhooks.build_trigger_webhook', - repository=repository_path, trigger_uuid=trigger.uuid) + path = url_for('webhooks.build_trigger_webhook', trigger_uuid=trigger.uuid) authed_url = _prepare_webhook_url(app.config['PREFERRED_URL_SCHEME'], '$token', token.code, app.config['SERVER_HOSTNAME'], path)