Skip to content

Saleor Core: the high performance, composable, headless commerce API.

change redirect to graphql/ to /graphql/ to prevent server recursive redirect

Mohamed Gnedye28a0538ae2d
diff --git a/saleor/urls.py b/saleor/urls.py
index 4be73eb4a9..57a304b2b2 100644
--- a/saleor/urls.py
+++ b/saleor/urls.py
@@ -35,7 +35,7 @@ if settings.DEBUG:
urlpatterns += static("/media/", document_root=settings.MEDIA_ROOT) + [
url(r"^static/(?P<path>.*)$", serve),
- url(r"^", RedirectView.as_view(url="graphql/")),
+ url(r"^", RedirectView.as_view(url="/graphql/")),
]
if settings.ENABLE_SILK: