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

Custom cover images not showing in pages. #312

Open
DDamianoff opened this issue Mar 26, 2022 · 2 comments
Open

Custom cover images not showing in pages. #312

DDamianoff opened this issue Mar 26, 2022 · 2 comments

Comments

@DDamianoff
Copy link

Describe the bug

Cover images in custom pages doesn't show if it was changed.

Screenshots

show-1
image

Additional context

Actually, I've found the problem, but I'm too newbie to fix it myself:
image

Removing those bars, the image shows properly:
image

@DDamianoff
Copy link
Author

Nevermind: #313

@gstars271
Copy link

gstars271 commented Oct 16, 2022

I found the cause of this problem because function get source will get absolute url, then it will be saved to the database with the full scheme.

post-cover-source

Therefore, when the cover is loaded in the view with the line of code, add a "/" in front of it, it will display incorrect.
cover-view

Now the problem is, in the past, in the database only the relative path was saved, and I don't know from which update it got the absolute url.
image

The fix for this is simply to remove the "/" on views that show cover.
But if we have old posts, it seems we have to write a script to update the Cover field in the database.

@rxtur Did you aware this?

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