Skip to content

Commit

Permalink
fixing favico issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisDDBT committed Feb 7, 2025
1 parent 9928b13 commit 5fa9c03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
from django.contrib import admin
from django.urls import include, path
from django.views.generic.base import RedirectView
from django.http import HttpResponse
from django.urls import re_path

def empty_favicon(request):
return HttpResponse(status=204)

urlpatterns = [
path("auth/", include("authbroker_client.urls", namespace="authbroker")),
Expand All @@ -38,6 +42,7 @@
path("payroll/", include("payroll.urls")),
path("admin/", admin.site.urls),
# TODO - split below out into develop only?
re_path(r"^favicon.ico$", empty_favicon),
path(
"assets/<path:asset_path>",
RedirectView.as_view(url="/static/govuk/assets/%(asset_path)s"),
Expand All @@ -58,4 +63,4 @@

urlpatterns.append(
path("__debug__/", include(debug_toolbar.urls)),
)
)

0 comments on commit 5fa9c03

Please sign in to comment.