static-cms icon indicating copy to clipboard operation
static-cms copied to clipboard

Inconsistencies in the handling of `public_folder` in image paths: Discrepancies between expectations and results

Open lorensansol opened this issue 6 months ago • 1 comments

  • If I use public_folder: /foo
    • Expectation?: image: /foo/example.jpg
    • Reality: image: /foo/example.jpg
  • If I use public_folder: /foo/
    • Expectation?: image: /foo/example.jpg
    • Reality: image: /foo//example.jpg 🆗 It is ok because there is the previous option
  • If I use public_folder: ''.
    • Expectation?: image: example.jpg ⬅️ I would especially like this
    • Reality: image: /example.jpg
  • If I use public_folder: /
    • Expectation?: image: /example.jpg
    • Reality: image: //example.jpg

lorensansol avatar Aug 27 '24 11:08 lorensansol