Your Name 3 år sedan
förälder
incheckning
1aee15a020
1 ändrade filer med 1 tillägg och 1 borttagningar
  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>   document.location = '/a1/index_complete.html?par={0}';   </script>
+    <script>   document.location.href = '/a1/index_complete.html?par={0}',true;   </script>
     </body></html>"""
 #    return RedirectResponse(url='/a1/index_complete.html')
     return HTMLResponse(content=lines.format(str(random.randint(100000,999999))), status_code=200)