I've implemented navigation in a small flask powered website like this and it seems to do the job:
<!-- Navigation (Stays on Top) -->
<div class="w3-top w3-bar w3-black">
<a href="page1" class="w3-bar-item w3-button">Home</a>
<a href="page2" class="w3-bar-item w3-button">Page 2</a>
<a href="Page3" class="w3-bar-item w3-button">Page 3</a>
</div>
Inside views.py for Page 2 is :
@imprint.route("/page2")
def page2_view():
return render_template("page2.html")
and homologous for the other pages.
Is there any security risk or other issue with this, why would one instead use the package - https://flask-navigation.readthedocs.io/en/latest/