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

CP Avatars sometimes appearing with double slash #4346

Open
dougblackjr opened this issue Jun 5, 2024 · 0 comments · May be fixed by #4347
Open

CP Avatars sometimes appearing with double slash #4346

dougblackjr opened this issue Jun 5, 2024 · 0 comments · May be fixed by #4347

Comments

@dougblackjr
Copy link
Contributor

Description of the problem

We hosted our avatars on a CDN. We have the avatar path set to the Cloudfront path in the config.php, which is working fine.

On the backend, we are seeing an additional slash getting added to the avatar path. The double slash is breaking the avatar call through the CDN since CF doesn't know how to process it.

How To Reproduce

Steps to reproduce the behavior:

  1. Set avatar path to use Cloudfront or other CDN.
  2. Set avatar

Error Messages

No error, just a broken image.

Environment Details:

  • Version: 7.4.x
  • PHP Version 8.1
  • MySQL Version 8.x
  • OS: Linux
  • Web Server: nginx

Possible Solution

Add checks for slash and add them manually.

Additional context

PR incoming.

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 a pull request may close this issue.

1 participant