Replace req.dev with /app URL.