Skip to content

Can't view preview in admin mode #6994

Discussion options

You must be logged in to vote

The /admin/preview/assets/css/theme.min.css sounds like you accidently used a relative path for your CSS instead of a absolute path. I think you should get a similar error when you are on a subpage like /some/subpage.

So your CSS <link href="assets/css/theme.min.css" ... should be changed to <link href="/assets/css/theme.min.css" ....

Sulu does not force you how to embed your CSS or JS. Symfony itself has webpack encore which you can use to build your css and embed it in your base template: https://docs.sulu.io/en/2.5/cookbook/webpack-encore.html

But at the end you can do what you are most familiar with to embed css/js the way you like most and build the assets with the tool you are most …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vmdevmihajlo
Comment options

Answer selected by vmdevmihajlo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6993 on February 07, 2023 20:58.