fix tests
Generate the permalink on the server

Also, format is now html by default