Use core routes in js too
This commit is contained in:
parent
16dacba490
commit
4954e46bb2
|
@ -54,9 +54,9 @@ OC={
|
||||||
var isCore=OC.coreApps.indexOf(app)!=-1;
|
var isCore=OC.coreApps.indexOf(app)!=-1;
|
||||||
var link=OC.webroot;
|
var link=OC.webroot;
|
||||||
if((file.substring(file.length-3) == 'php' || file.substring(file.length-3) == 'css') && !isCore){
|
if((file.substring(file.length-3) == 'php' || file.substring(file.length-3) == 'css') && !isCore){
|
||||||
link+='/?app=' + app;
|
link+='/index.php/apps/' + app;
|
||||||
if (file != 'index.php') {
|
if (file != 'index.php') {
|
||||||
link+='&getfile=';
|
link+='/';
|
||||||
if(type){
|
if(type){
|
||||||
link+=encodeURI(type + '/');
|
link+=encodeURI(type + '/');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue