'Returns history\'s name and link.'

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

    history = self.history_manager.get_accessible(self.decode_id(id), trans.user, current_history=trans.history)
    if self.create_item_slug(trans.sa_session, history):
        trans.sa_session.flush()
    return_dict = {'name': history.name, 'link': url_for(controller='history', action='display_by_username_and_slug', username=history.user.username, slug=history.slug)}
    return return_dict
