From 50ef3f43c194f9b286d54493771f5ca432a26585 Mon Sep 17 00:00:00 2001 From: Peter Braun Date: Sat, 14 Sep 2024 14:44:52 +0200 Subject: [PATCH] fix workflow job url --- awx/main/models/workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/workflow.py b/awx/main/models/workflow.py index 0451daf5bd7d..0cf61265d842 100644 --- a/awx/main/models/workflow.py +++ b/awx/main/models/workflow.py @@ -690,7 +690,7 @@ def get_absolute_url(self, request=None): return reverse('api:workflow_job_detail', kwargs={'pk': self.pk}, request=request) def get_ui_url(self): - return urljoin(settings.TOWER_URL_BASE, '/#/jobs/workflow/{}'.format(self.pk)) + return urljoin(settings.TOWER_URL_BASE, "{}/jobs/workflow/{}".format(settings.OPTIONAL_UI_URL_PREFIX, self.pk)) def notification_data(self): result = super(WorkflowJob, self).notification_data()