Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Image not following Custom base URL

Started by David Ing 8 years ago · 2 replies · 492 views
8 years ago

My web site was working fine when I installed it last year. I've now noticed that an image is not showing up, as it had previously. Could someone help me determine if this is a new bug, or if I missed a configuration detail?

If you look at https://lowkong.org/base/ , you'll see an image missing. If I right-mouse-button in my browser to "Open image in new tab", it goes to https://lowkong.org/home/di_20130711_013442_lougang_diaolou_watchtower_595.jpg .
This is unexpected, because if I correct the URL to https://lowkong.org/base/home/di_20130711_013442_lougang_diaolou_watchtower_595.jpg , the file is obviously there.

Reading some other forum, I noticed that on the Configuration page, there's a "Custom base URL", which I've now ensured is set to https://lowkong.org/base .

In order to make sure that I was getting the image in the right place, I deleled the image on the Page (Home), dragged-and-dropped another copy into the folder, and then used the mouseover insert button.
image|637x500

This was working last year, and isn't, now. Bug or user error?

8 years ago

I went to check out your website and it seems that the links from those images still have /home in their url.
When checking out the corrected url (changed it from
https://lowkong.org/home/di_20130711_013442_lougang_diaolou_watchtower_595.jpg
to
<img src='//cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex036/uploads/getgrav/original/2X/e/e58da93ed946bb5f67985ed2070a80bc1904b29a.jpeg'>
), they did seem to work fine..
The links still seem to be connected to the page you're currently sitting on, maybe try and provide the full link : aka 'https://lowkong.org/base/di_20130711_013442_lougang_diaolou_watchtower_595.jpg' and see what happens 🙂

Good luck!

last edited 11/18/18
8 years ago

@RobLui:
/home in their url.

Yes, and I didn't code the /home in the URL (that is missing the base subdirectory). I transferred the image to the host in the Markdown way as recommended by Grav at https://learn.getgrav.org/content/media .

I understand that I could hard code the URL. That's not really the question.

Has anyone else inserted images with drag-and-drop? Is this a problem that is reproducible?

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 74 6 hours ago
General · by pamtbaau, 11 hours ago
1 47 11 hours ago
General · by Andy Miller, 23 hours ago
0 43 23 hours ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 39 5 days ago