allofphysicsgraph / proofofconcept

Physics Derivation Graph: mathematical connections among equations
https://derivationmap.net/
Other
20 stars 6 forks source link

"return to main menu" button on "review derivation" pages is not working #228

Closed bhpayne closed 3 years ago

bhpayne commented 3 years ago

On "review derivation" pages like https://derivationmap.net/review_derivation/608598/ the "return to main menu" button triggers no response.

The HTML source code for the page includes value="return to main menu" within a form. I investigated whether the controller catches the value?

The controller.py file https://github.com/allofphysicsgraph/proofofconcept/blob/gh-pages/v7_pickle_web_interface/flask/controller.py has def review_derivation which includes

elif request.form["submit_button"] == "return to main menu":
            logger.info("[trace page end " + trace_id + "]")
            return redirect(url_for("index", referrer="review_derivation"))
bhpayne commented 3 years ago

Actually, the value="return to main menu" was outside the form tag in review_derivation.html