{% if app.request.get('_route') == 'homepage' %}
<div class="top_search" itemscope itemtype="http://schema.org/WebSite">
<meta itemprop="url" content="{{ app.request.schemeAndHttpHost }}"/>
<form class="top_search-form" method="GET" action="{{ path('hitso_search_front_index') }}" itemprop="potentialAction" itemscope
itemtype="http://schema.org/SearchAction">
<meta itemprop="target" content="{{ url('hitso_search_front_index') }}?q={q}"/>
<input class="top_search-input" name="q" type="search" placeholder="Type what you're looking for..." itemprop="query-input"
id="searchPhrase" title="Search"/>
<button class="top_search-submit btn btn--primary btn--inverted" type="submit" id="searchSubmit">Search</button>
</form>
</div>
{% else %}
<div class="top_search" itemscope itemtype="http://schema.org/WebSite">
<meta itemprop="url" content="{{ app.request.schemeAndHttpHost }}"/>
<form class="top_search-form" method="GET" action="{{ path('hitso_search_front_index') }}">
<input class="top_search-input" name="q" type="search" placeholder="Type what you're looking for..." id="searchPhrase"
title="Search"/>
<button class="top_search-submit btn btn--primary btn--inverted" type="submit" id="searchSubmit">Search</button>
</form>
</div>
{% endif %}