laravelpyrocms

Remove backslash when get url in pyrocms


I have problems when showing url, I use {{ page.header_image.url }} but the results is: http://localhost:8000/\app/default/files-module/local/images/banner-ourpage.jpg

Why I get the backslash in the url? It would be ok if no backslash.

I'm using windows and pyrocms 3.3


Solution

  • I just noticed this is not making it into the Image class which is what I was assuming earlier. It was in the files adapter.

    Your code is fine but I just realized there was a bug there for windows machines.

    This should fix it: https://github.com/anomalylabs/local_storage_adapter-extension/commit/151b53be442e1851f2bd8a3b06b84cdbaeef9907