Skip to content

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Jul 3, 2018

@taupalosaurus found this issue on the jobs page where the links to the job results assumed that the application is always hosted at the root.

This change fixes the links to the job results by pre-pending the APPLICATION_ROOT to the link result URL if it's not already there. Performing this fix in the background job decorator as a post-processing step means that all the existing background job code which uses links as return values doesn't have to change.

Screenshot of issue (blue) and fix (red):

image

Copy link
Member

@colinschoen colinschoen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@colinschoen colinschoen merged commit 199d510 into okpy:master Jul 3, 2018
@c-w c-w deleted the bug/c-w/non-root-job-links branch July 3, 2018 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants