dimanche 7 février 2016

Symfony3 bad routing for assets

Prehistory: I've created CRUD for entity, and now trying to apply my styles to that CRUD's pages. My problem looks like:

enter image description here

As you see css-files are loading from "/mannapp/vdservers", but they should be loaded from "/". What should I do?

Routing for this page:

manapp_vdservers_index:
   path:   /manapp/vdservers/
   defaults: { _controller:MainBundle:VDServers:index }
   methods:  [GET]

Links for assets looks like this:

<link href="css/general.css" rel="stylesheet">




Aucun commentaire:

Enregistrer un commentaire