When I upload a pdf, the link points to the sitecake-temp directory even after publishing, and even though a copy of the pdf is created in the root/files directory. Is this by design? It make the URL quite verbose.
THIS IS IMPORTANT >>
When a files is uploaded, the generated link is like this:
a href="sitecake-temp/r59fda6b0b802a/draft/files/2017-18-pdf-sc59ff1e3c09fba.pdf" target="_blank"
This link assumes that the page it is created on is in the root directory!
Please patch your code so that it points to /sitecake-temp/ as opposed to sitecake-temp/
Effectively, any file uploaded to a page not in the root directory will just point to the 404 page. Unless the link is modified manually.
Hi,
it looks like you found a bug. We’re working on patch.
Thanks
Hey great job on the timely update, and very glad to see I helped find an actual bug
BTW, I recently found out that you guys are from Belgrade. Pretty happy to have sponsored a local startup!
Actually, it’s Novi Sad
Thank you for reporting a bug and helped us to improve Sitecake
Hi,
I am using the updated version (2.4.7) but this issue has started occurring for me.
Also, my changes are not being saved…
Please advice urgently
<p><a href="files/xyz-sc59f2fd740a8f3.pdf" target="_blank"></a>
<a href="http://abc.com/sitecake-temp/r596f1fba06910/draft/files/xyz-sc59f2fca11b337.pdf" target="_blank">xyz</a> </p>