In the website I am creating, I want to include a form that gets the information contained in the button the user presses and then sends information through flask. Then with render_templates it comes back to the same tab. The button that the user clicks is not a nav-button but a submit one. How can I add a bookmark so that the user goes back to the middle of the page and not the top every time he presses this button to send the form?
In my case, I am using flask. I use the following code:
@app.route("/me")
def me():
return render_template("me.html",objeto=objeto)
I want to go to the middle part of "me.html" but I cannot add "me.html#middle_part" as a bookmark here...
So I cannot create a conventional bookmark... Any ideas?
What @Don Smythe explained helped me, but what if the button is not a navigation tab but a form? Then there is no "href" attribute where you can put the url_for function... Any help? I am referring to this question:
Link to a specific location in a Flask template