<% import cherrypy redirect = '/app/%s/search' % app if cherrypy.request.query_string: redirect += '?' + cherrypy.request.query_string %>