Every time I open a dynamic page in Nuxtjs for the first time, it works perfectly. However, if I reload the page manually, all of the css and js files stop working, causing the page to break. When I open these styling and js files in the browser from their page source, it shows " /* style not found */ ". Can someone provide guidance on why this is happening and what the solution might be? My app's mode is set to universal.
In my nuxt.config.js file, the script tag refers to files located in the static/assets folder:
https://i.sstatic.net/R06Ao.jpg
This image illustrates my issue:
https://i.sstatic.net/hECts.jpg
The problem arises because the path for the pages/project/id page is one directory up from the static folder files, while the direct path for pages/ViewProject file remains different. I am unsure how to make the paths consistent for both nested and direct pages. Could anyone offer assistance with this?