Is there a way to get the url of the code, but without a part of the application name?
I need to call Url.Action("Create", "Home")and get / home / Create, but not / AppName / home / Create.
Default map route: {controller} / {action} / {id}
The application is published in the "AppName" folder on the server and Url.Action("Create", "Home")returns / AppName / home / Create.
source
share