Your Name 3 jaren geleden
bovenliggende
commit
5166eaf6dd
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      step_question/apis/main.py

+ 1 - 1
step_question/apis/main.py

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