'.net 6 core mvc return view() static file path gets the view path error : net::ERR_ABORTED 404
There is a problem with .net 6 core mvc when invoking a method of controller by (asp-controller ="test" asp-action="GetTest") static files such as js, css, media files in wwwroot path is getting the wrong path for example, https://localhost:7261/curriculumvitae/assets/plugins/global/plugins.bundle.css in this path curriculumvitae should be removed and the corret path is https://localhost:7261/assets/plugins/global/plugins.bundle.css
how to remove it from the static path. that is view is directory. Briefly view directory should not be added to the static path. I appreciate your valuble helpings. with regards
Solution 1:[1]
~/ adding this to every static js file problem solved.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Hafizullah Ozgur |

