I am nearly certain I have discovered a bug in the [url=http://doc.silverstripe.com/doku.php?id=staticpublisher]Static Publisher[/url] which disables you from exporting any site to HTML files which contains one or more instances of a Redirect Page containing an external URL. This appears to occur in \sapphire\filesystem\Filesystem.php where the method MakeFolder() attempts to name the file using the external URL(s) from the Redirect Pages. This can easily be reproduced in any version 2.3 and later by creating a Redirect Page on your site which has an external URL associated with it and then making a request in the browser to http://www.mysite.com/dev/buildcache?flush=1.
I think everyone will agree that when exporting a site to cache, links that redirect to external URL's need not have pages created for them.
Can anyone offer some help on how I can fix this locally? Add some code to prevent pages of this ClassName from being exported?
Any help offered would be greatly appreciated :)