@app.route('/links/<int:n>')
def links(n):
 return redirect(url_for('link_page', n=n, offset=0))

@ app . route ( '/links/<int:n>' ) def links ( n ) : return redirect ( url_for ( 'link_page' , n = n , offset = 0 ) )
redirect to first links page .