I'm getting the wrong media, JS & CSS file path on the frontend and backend after installing Magento 2.4.2. Please review the below URLs we are getting. I've tried updating the value in the database core_config_data table, Also in-store configuration values.
 asked May 30, 2021 at 18:21
 
 
 
 sourabh yadav 
 
 4351 gold badge8 silver badges23 bronze badges
 
 1 Answer 1
You need to put url in core_config like "https://example.com/pub/static/"
it will help you
 answered May 31, 2021 at 6:34
 
 
 
 Gohil Rajesh 
 
 3,1201 gold badge15 silver badges26 bronze badges
 
 - 
 1It will work, butpubshould never be in path on correctly configured Magento instance.dudzio– dudzio2021年05月31日 07:18:29 +00:00Commented May 31, 2021 at 7:18
- 
 then please remove value from that field. make it empty it will help you. dont forget to clear cache after thatGohil Rajesh– Gohil Rajesh2021年05月31日 07:23:06 +00:00Commented May 31, 2021 at 7:23
- 
 Yes it was cache related error. it fixed automatically after cache was disabledsourabh yadav– sourabh yadav2021年06月01日 13:06:14 +00:00Commented Jun 1, 2021 at 13:06
Explore related questions
See similar questions with these tags.
default
 
 
 
example.comas domain mask?pubdirectory inside URL, becauseMAGE_ROOT/pubshould be your default root location in vhost config file (root $MAGE_ROOT/pub;if you use nginx).