I made an .NET MVC which is deployed on AKS in a certain namespace just classic service and deployment yamls to deploy it. When I forward to it (port 80) for example, I can access it without any problems; I can see all of the webpages and its contents, including js, css, images and so on.
I added an Nginx Ingress controller to the same namespace using the following Microsoft documentation: https://learn.microsoft.com/en-us/azure/aks/ingress-basic?tabs=azure-powershell. When I try this out with the example aks-hello-world example, it redirects to the aks-hello-world without any issues.
When I change the routing inside the ingress-yaml and redirect it to the MVC, which resides in the same namespace, it loads the home page (when I go to the source code, I can see that it loaded the page successfully because the HTML is there) but it doesn't load in css, js or images. How can I make sure that the js, css and images are loaded in correctly?