FIX: code was appending a trailing slash where necessary to static file paths but this does not update the request url....relative paths in html will not work as expected in this case