Skip to content

Commit

Permalink
Merge pull request #15 from uktrade/feature/index-search-redirect-def…
Browse files Browse the repository at this point in the history
…ault

temp:remove unused redirect in orp_search views
  • Loading branch information
hareshkainthdbt authored Oct 14, 2024
2 parents be637a3 + 3c9ffb0 commit b9e967b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions orp/orp_search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from django.conf import settings
from django.http import HttpRequest, HttpResponse
from django.shortcuts import redirect, render
from django.shortcuts import render
from django.views.decorators.http import require_http_methods

from core.forms import RegulationSearchForm
Expand Down Expand Up @@ -63,9 +63,6 @@ def search(request: HttpRequest) -> HttpResponse:
during the Data API search, the service problem page is displayed.
"""

if "query" not in request.GET:
return redirect("/?query=")

context = {
"service_name": settings.SERVICE_NAME_SEARCH,
}
Expand Down

0 comments on commit b9e967b

Please sign in to comment.