fixes trailing slash problem that keeps assets from loading