When using a prefix in a route my layout loses styles #3629
-
In this project I'm trying to deploy categories, like driver/main or user/main, differents pages, differents folders and the same @layout, when I try to use for expample driver-main instead driver/main the styles works, but with prefix they don't. I'm using the simple public storage without webpack since I don't know how to use it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey @Osorio95! 👋🏻 Could you give us some code examples? The best would be a reproducible repository. |
Beta Was this translation helpful? Give feedback.
-
In my case the issue was loading resources without <script src="vendor/jquery/jquery.min.js"></script> instead of <script src="/vendor/jquery/jquery.min.js"></script> |
Beta Was this translation helpful? Give feedback.
Hey @Osorio95! 👋🏻
Could you give us some code examples? The best would be a reproducible repository.
Also, ensure to use an absolute path to define your asset.