'Returns visualization\'s name and link.'

@web.expose
@web.json
@web.require_login('get    item    name    and    link')
def get_name_and_link_async(self, trans, id=None):

    visualization = self.get_visualization(trans, id, check_ownership=False, check_accessible=True)
    if self.create_item_slug(trans.sa_session, visualization):
        trans.sa_session.flush()
    return_dict = {'name': visualization.title, 'link': web.url_for(controller='visualization', action='display_by_username_and_slug', username=visualization.user.username, slug=visualization.slug)}
    return return_dict
