if (entered_root[1]=='/') {
// you can exclude 'webroot' by written two slashes: '//'
uriOnly = uriOnly.substr(1);
+ } else if (entered_root[4]!='/') {
+ // be clever and add the missing slash
+ uriOnly += '/';
}
}
var cvs_view = (!cvs_viewsource ? 'log' : 'markup')
}
url = tv2_sitename;
if (tv2_sitetype) {
- url += (tv2_sitetype == 'webroot' ? '' : '.'+tv2_sitetype);
+ if (this._reg_cvs_nopostfix.exec(tv2_sitename)) {
+ // always include sitetype
+ url += '/'+tv2_sitetype;
+ } else {
+ url += (tv2_sitetype == 'webroot' ? '' : '.'+tv2_sitetype);
+ }
} else if (this._reg_cvs_rootfolders.exec(tv2_rootfolder)) {
url += tv2_rootfolder;
} else {
links.push(new this.TV2LinkWithLabel('w3c', TV2Util.getStr('w3c'),
'http://validator.w3.org/check?uri=' + encodedURL, TV2Util.getStr('w3c.accesskey')));
links.push(new this.TV2LinkWithLabel('flushcache', TV2Util.getStr('flushCache'),
- '', TV2Util.getStr('flushCache.accesskey'), 'flushCache'));
+ '-', TV2Util.getStr('flushCache.accesskey'), 'flushCache'));
return links;
}
}
/* follow link */
- if (url != '') {
+ if (url != '-') {
openUILink(url, event, false, true, false); /* allow ctrl, not alt, and don't google */
}
if (tv2linktype) {