When using Python's webbrowser.open(local_webpage_url#section)
the #section
tag at the end of the local_webpage_url
gets ignored and the browser opens the HTML page but does not navigate to the section. (The address bar also does not show the #section
)
Is there special syntax or an additional navigation command that can be used to navigate to the section without using any additional modules?
SMALL UPDATE
I am linking to Sphinx documentation anchors, so that the user gets directed to the relevant section. I tried Georgy's method and the url he has worked for me as well, but my local url is just directing to the page, not the anchor.