Skip to content

Commit

Permalink
fix workflow job url (#15522)
Browse files Browse the repository at this point in the history
  • Loading branch information
pb82 committed Sep 14, 2024
1 parent 5315a2b commit 6fd4836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/main/models/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6fd4836

Please sign in to comment.