Update middlewares. Fix homepage-url.