Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL to report in footer of an exported PDF not correct #2750

Closed
fniessink opened this issue Oct 21, 2021 · 0 comments
Closed

URL to report in footer of an exported PDF not correct #2750

fniessink opened this issue Oct 21, 2021 · 0 comments
Assignees
Labels
Bug Something isn't working

Comments

@fniessink
Copy link
Member

fniessink commented Oct 21, 2021

For example, if the report URL is http://www.quality-time.example.org/example-report-quality-time, then the URL in the exported PDF will point to http://www/example-report-quality-time. This makes sense as that is the URL that the renderer uses to open the report.

In other environments, we see the correct URL except for the addition of a port, e.g. http://www.quality-time.example.org/example-report-quality-time becomes http://www.quality-time.example.org:2016/example-report-quality-time.

Solution: user browser frontend passes its window.location.href as extra query parameter to the server (via get_report_pdf(). The server in turn passes the parameters to the headless browser in the renderer. The frontend then uses the passed parameter in Footer.AboutReportColumn.

Also check the PDF export via the API.

@fniessink fniessink added the Bug Something isn't working label Oct 21, 2021
@fniessink fniessink changed the title URL to report in footer of an exported PDF does not contain the FQDN URL to report in footer of an exported PDF not correct Nov 3, 2021
@fniessink fniessink self-assigned this Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

1 participant