15 lines
414 B
JavaScript
15 lines
414 B
JavaScript
|
/**
|
||
|
* overrides the internal href-function, as
|
||
|
* helma.framework.core.Application.getNodeHref(Object,String)
|
||
|
* isn't able to compute correct urls for non-node objects.
|
||
|
* @arg action of application
|
||
|
*/
|
||
|
function href(action) {
|
||
|
var url = getProperty("baseURI");
|
||
|
url = (url==null || url=="null") ? "" : url;
|
||
|
url += this.name + "/api/" + ( (action!=null && action!="") ? action : "main" );
|
||
|
return url;
|
||
|
}
|
||
|
|
||
|
|