Make static asset paths work for server-rendering. Closes #297.