Answer the question
In order to leave comments, you need to log in
When you turn on the CNC on ocstore3, styles and scripts are not loaded?
There is, for example, the site site.test
When this site is opened, a link with attributes is formed on the catalog page, for example https://site.test/shop?category=2&filter=test
And styles with scripts are loaded along this path https://site.test/ src/styles/style.js
But when you turn on the CNC (standard), the path becomes just https://site.test/shop
And if you add a filter, they will be something like this (well, that's how it works) https://site.test/shop /filter/test
And of course the scripts are already trying to load from this path https://site.test/shop/filter/test/src/styles/style.js , where they naturally don't exist.
Tell me, maybe someone knows how to fix this, maybe there is some setting for Apache, etc.
How to tell the server to load styles from this directory (something like this) https://site.test/
Change all connections to strict as an option, but no.
Something I feel in my heart and soul that can be done almost normally.
Answer the question
In order to leave comments, you need to log in
Probably in the html code of the pages, the path to the scripts is specified as follows:
src="src/styles/style.js"
You need to specify the path from the site root:
src="/src/styles/style.js"
All connections on the site have changed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question