f versions %}
  <select onChange="window.location.href=this.value" class="version-select">
      {%- for item in versions|reverse %}
        {% if item.name == latest_jina_version %}
          {% set new_url = item.url if current_version.name == latest_jina_version else item.url | replace('/' + latest_jina_version, "") %}
          {% if current_version.version == item.version %}
            <option value="{{ new_url }}" selected="selected" >latest ({{ item.name }})</option>
          {% else %}
           