How can the "go back to the root path" function in C#: "~/", be expressed in Javascript if at all. (e.g. "~/myfolder/anotherfolder/file.html").
The problem that I encountered is actually related to DNN, AngularJS and the use of routes. I have a DNN page on which I defined an angular module (call it app). The module's js files are located inside the DNN skin which I named 'mySkin' and defined a variable like so:
var skin path = "/Portals/_default/Skins/mySkin/"
and the template's path is:
var template = "/Portals/_default/Skins/mySkin/templates/template.html"
The route as:
var routes = {
main: { templateUrl: template, controller: 'mainController' },
}
With this configuration ng-view is not being populated with anything and i suspect that it is because the DNN page is executed at a route:
mydomain.com/services#/
Any ideas?