#NEWLINE# @ app . route ( '/<string:handler>' ) #NEWLINE# def handle_url( handler ) : #NEWLINE# #INDENT# link = expand_link ( handler ) #NEWLINE# if ( not link ) : #NEWLINE# #INDENT# return redirect ( url_for ( 'index' ) ) #NEWLINE# #UNINDENT# return redirect ( link , code = 302 )