I just upgraded my Magento setup from 2.2.3 to 2.4.4 and all went good but after running setup:upgrade command i tried to access the website and it load without any php error but all files serving from "pub" directory giving 404 error, their path doesn't contain "pub".
This is the error in the URL for all of the files:
GET https://domain.com/media/wysiwyg/icon4.png 404
and the path should be here
https://domain.com/pub/media/wysiwyg/icon4.png