I tried this on the latest version of the community code before posting the response and it worked fine for me, I'm not sure why you're getting the redirect … I'm assuming you've restarted your server and cleared your browser caches? What version of Alfresco are you trying this on?
The only thing I did differently was that I didn't import the "alfresco-template.ftl" file that was being done, but otherwise I used exactly the same file names and contents as in the original (now deleted) post and it all worked fine.
Regards,
Dave