feature(cloudcmd) rm no-js redirect

This commit is contained in:
coderaiser 2013-09-04 14:27:16 +00:00
parent 058ac8073a
commit 41b218cff0

View file

@ -268,16 +268,9 @@
pParams.name = main.HTMLDIR + p.name + '.html';
lRet = main.sendFile( pParams );
}
else if ( Util.isContainStrAtBegin(p.name, FS) || Util.strCmp( p.name, '/') ){
if ( Util.isContainStrAtBegin(p.name, FS + 'no-js/') ){
var lURL = Util.removeStr(pParams.name, 'no-js/');
return main.redirect(pParams, lURL);
}
else if ( Util.isContainStrAtBegin(p.name, FS) || Util.strCmp( p.name, '/') )
lRet = sendCommanderContent( pParams );
}
/* termporary redirect for old urls */
else
lRet = false;
}