Fix SPA routes.