I am working on a flask project. I have a home page that contains About, Problems, and Contact in the navbar. The index.html contains this for the navbar. The about, problem, and Contact sections are on the same page. So whenever these are clicked, the page scrolls to the corresponding section
<li class="nav-item">
<a class="nav-link aaa height" href="#about">About</a>
<a class="nav-link aaa height" href="#problem">Problems</a>
<a class="nav-link aaa height" href="#contact">Contact</a>
</li>
Now inside my problems page, I have the same navbar, But when I click the about button, it shows me URL not found. This is my python-flask code.
@app.route("/en/index#problem")
def index_about():
return render_template('index.html#about')
How can route to the index page about section from some other page?