In my Wiki installation I have disabled the possibility to see the original source or to export as HTML. I did this from the configuration panel.
In my daily logs I saw many requests to download the exported version. Looking at the page source I noticed that while the exported version is disabled, a <link> element with the alternate attribute is still present both for HTML and RAW formats.
Trying to reach the suggested URL's presents an error (as expected).
I modified template.php, at line 192. These are the changes I applied:
if ( actionOK('source') ) {
$head['link'][] = array( 'rel'=>'alternate', 'type'=>'text/html', 'title'=>'Plain HTML',
'href'=>exportlink($ID, 'xhtml', '', false, '&'));
}
if ( actionOK('export_raw') ) {
$head['link'][] = array( 'rel'=>'alternate', 'type'=>'text/plain', 'title'=>'Wiki Markup',
'href'=>exportlink($ID, 'raw', '', false, '&'));
}
Now the <link> element for RAW and HTML versions only appears if configured so.
Also, I believe that it's odd to call "source" the HTML version, while RAW seems appropriate. Using 'xhtml' as parameter for the method exportlink sounds odd too, since it's supposed to generate HTML.
- Andrea