mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(cloudcmd) rm no-js redirect
This commit is contained in:
parent
058ac8073a
commit
41b218cff0
1 changed files with 2 additions and 9 deletions
11
cloudcmd.js
11
cloudcmd.js
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue