Your Name %!s(int64=3) %!d(string=hai) anos
pai
achega
3c3695fb9f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      step_question/apis/main.py

+ 1 - 1
step_question/apis/main.py

@@ -49,7 +49,7 @@ async def submit(request: Request):
 #    fr.close()
 #    response = RedirectResponse(url='/a1/index_complete.html')
     lines="""<html><body>
-    <script>    window.location.href = "/a1/index_complete.html?par={0}"; </script>
+    <script>  window.location.replace("/a1/index_complete.html?par={0}");   </script>
     </body></html>"""
     return HTMLResponse(content=lines.format(str(random.randint(100000,999999))), status_code=200)