diff --git a/tests/test_custom_pages.py b/tests/test_custom_pages.py
index f2cfe394..48b27e7b 100644
--- a/tests/test_custom_pages.py
+++ b/tests/test_custom_pages.py
@@ -97,3 +97,8 @@ def test_custom_route_pattern_404(custom_pages_client):
assert response.status == 404
assert "
Error 404
" in response.text
assert ">Oh no" in response.text
+
+def test_custom_route_pattern_with_slash_slash_302(custom_pages_client):
+ response = custom_pages_client.get("//nastyOpenRedirect/")
+ assert response.status == 302
+ assert response.headers['location'] == "/nastyOpenRedirect"