{% extends "base.html" %}

{% block extrahead %}
  {{ super() }}
  <script>
    // Redirect starlette.io to starlette.dev
    if (window.location.hostname === 'www.uvicorn.org' || window.location.hostname === 'uvicorn.org') {
      const newUrl = window.location.href.replace(/^https?:\/\/(www\.)?uvicorn\.org/, 'https://uvicorn.dev');
      window.location.replace(newUrl);
    }
  </script>
{% endblock %}
