Blogifier icon indicating copy to clipboard operation
Blogifier copied to clipboard

Custom cover images not showing in pages.

Open DDamianoff opened this issue 2 years ago • 2 comments

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 avatar Mar 26 '22 15:03 DDamianoff

Nevermind: #313

DDamianoff avatar Mar 26 '22 16:03 DDamianoff

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?

gstars271 avatar Oct 16 '22 16:10 gstars271