I’m using the new editor for Kirby 3 and I’m running Kirby v.3.4.4. When I’m logged in to my panel, I get this output for an article in the frontend:
<figure> <img src="http://localhost/kirby/media/pages/blog/<article title>/<some string>/image.png" alt=""> <figcaption>...</figcaption> </figure>
When I’m logged out of my panel, I get this output in the frontend (image is broken):
<figure> <img src="http://localhost/kirby/media/pages/blog/<article title>/<string differs here>/image.png" alt=""> <figcaption>...</figcaption> </figure>
I simplified the filename to
image.png in both examples. Only the part
<some string> and
<string differs here> differ in the image URLs. Output 1 shows the image properly. Output 2 is a broken image.
What did I do wrong? I’m surprised that the output differs depending on my log-in status but I did something wrong for sure. To be honest I didn’t debug this much because I don’t see what this could cause. I had some pause with the project and found it by chance.
<?= $page->text()->blocks() ?> to output the article text.
A caching or cookie issue can’t be the origin of this as the browser session is always a new one when I restart the browser. There’s only one
page.create:after hook to create a child item and to update the child. This happens on a WAMP setup.