def dict_short(): query = request.urlparts.query url = '/dictionary?{0}'.format(query) if query else '/dictionary' redirect(url)