Mautic Community Forums

Mautic assets paths broken on wamp (index_dev)

Looks like mautic has troubles with full assets paths on WAMP server while using index_dev.php

i have a bunch of 403 errors in console looks like next one:

error GET http://mr.localhost/D:/wamp/www/mautic-repo/app/bundles/LeadBundle/Assets/js/lead.js … installer:84



Obviously this path is broken.

May be mautic trying to detect path as URL or linux path and “D:” is not valid start? Or any other reason?

Can i fix this somehow by myself?

Looks like mautic has troubles with full assets paths on WAMP server while using index_dev.php
i have a bunch of 403 errors in console looks like next one:
error GET http://mr.localhost/D:/wamp/www/mautic-repo/app/bundles/LeadBundle/Assets/js/lead.js … installer:84

Obviously this path is broken.
May be mautic trying to detect path as URL or linux path and “D:” is not valid start? Or any other reason?
Can i fix this somehow by myself?

Interesting… So the right path should be:

http://mr.localhost/mautic-repo/app/bundles/LeadBundle/Assets/js/lead.js

Right?

It definitely looks like its trying to build an “absolute” path instead of a relative path. But, I suspect that’s not a mautic issue but more of a php or apache configuration.

What happens if you edit Mautic’s configuration while in dev mode and check path it has for the site? If its not set you could try setting it to the correct relative path, clear mautic app cache and see if that changes anything?