button redirect to new page html flask

HTML
<button type="button" onclick="window.location.href='{{ url_for( 'dataTablePage' , table='Y' ) }}';">Display Table Y</button>
Source

Also in HTML: