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

Image URLs in social previews are not prefixed with backend URL #37

Open
soudis opened this issue Apr 18, 2023 · 1 comment
Open

Image URLs in social previews are not prefixed with backend URL #37

soudis opened this issue Apr 18, 2023 · 1 comment

Comments

@soudis
Copy link

soudis commented Apr 18, 2023

In the SocialPreview (FacebookPreview and TwitterPreview) the image urls are not prefixed with the backend URL.

In our setup we have the fronted at a specific URL (example.com) and the backend / strapi sitting at a subpath (example.com/strapi). Other strapi plugins or the content manager can handle this because they use the prefixFileUrlWithBackendUrl helper function when dealing with image urls. The seo plugin however just uses the plain url and therefore the images are not shown in the preview.

I created a (not yet tested) PR: #36

@hovcharenko
Copy link

I'd like to vote on this one too, we're experiencing the same issue under same conditions

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

No branches or pull requests

2 participants