Recently, we made a significant change to our website's URL. We switched from a long and complex URL like www.example.com/portal/public/media/12345 to a more concise one at www.newsite.com/12345.
However, after the URL restructuring, I noticed that the CSS is no longer loading properly. Is there something specific that I should add or remove in my JSP files to rectify this issue?
The way I am currently accessing the CSS in my JSP files is as follows:
<link href="/resources/portal.css" rel="stylesheet" />
It's worth noting that the resources folder is located under the web/webroot directory.
Error Log: WARN 31 Jan 2018 13:43:08,694 () [PageNotFound] - No mapping found for HTTP request with URI [/portal/public/media/portal/resources/portal.css;jsessionid=799088F1EB2D765BAF6B5AB0F62364FC.tcserver0] in DispatcherServlet with name 'portal'
Additionally, when checking the console in the Chrome browser, I encountered the following error code: GET newsite.com/portal/resources/… net::ERR_AB
If anyone could provide assistance with resolving this issue, it would be greatly appreciated.