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

Fix icon redirection by adding language code and leading slash to URI #554

Merged
merged 2 commits into from
Oct 19, 2022

Conversation

codeurimpulsif
Copy link
Contributor

@codeurimpulsif codeurimpulsif commented Oct 10, 2022

The actual call for application's icon on a report page is /reports/<application-id>/icon which return a 302 to /<language-code>/reports/<application-id>/icon/.

This PR change this first call to directly call the good icon by:

  • Adding the language code
  • Adding a leading slash

Note: A better solution would be to force django to serve this icon without language redirection.

@codeurimpulsif codeurimpulsif added enhancement New feature or request good first issue Good for newcomers labels Oct 10, 2022
Copy link
Member

@pnu-s pnu-s left a comment

Choose a reason for hiding this comment

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

Fine with me, as long as we create an issue to make the proposed change (the "better solution")

@pnu-s pnu-s merged commit da96ad0 into v1 Oct 19, 2022
@pnu-s pnu-s deleted the fix-icon-redirection branch October 19, 2022 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants