Closed afbora closed 3 years ago
@lukasbestle this is caused by us changing the URL to the public permanent URLs... for drafts those won't work. Should we switch back? Try to differentiate (maybe tricky)?
I think the cleanest solution would be token support for file URLs in draft pages. Basically like with the preview URLs for pages, Kirby would add a ?token=
query param.
✅
Looks like Bastian decided to go the simple way :D
Including the token in the URL wasn't as trivial as I thought. The token method is protected and making it public didn't seem a good decision just to fix this. I also think it can be expected that the URLs of files in drafts are not permanent.
To Reproduce
Steps to reproduce the behavior:
Kirby Version
develop
branchAdditional context
This issue only for draft pages and file url like
/photography/trees/last-tree-standing.jpg
instead/media/pages/photography/trees/..