As I work on my ASP MVC app, I encountered an issue with the path to a Partial View when using Javascript. The path needed to be hardcoded and differs between Development and Production environments.
Specifically, in Dev there is no App specification, whereas in Production there is. For example:
Production -
var URL = '/WetWashRequest/wetWashRequests/GetDetails?WONumber=' + wo;
Dev -
var URL = '/wetWashRequests/GetDetails?WONumber=' + wo;
This means that during local development, I have to remove the first part of the path, and then remember to add it back before deploying.
This process seems cumbersome and flawed. It makes me question if I am missing something or making a mistake...