'Returns page\'s name and link.'

@web.expose
@web.json
@web.require_login('use    Galaxy    pages')
def get_name_and_link_async(self, trans, id=None):

    page = self.get_page(trans, id)
    if self.create_item_slug(trans.sa_session, page):
        trans.sa_session.flush()
    return_dict = {'name': page.title, 'link': url_for(controller='page', action='display_by_username_and_slug', username=page.user.username, slug=page.slug)}
    return return_dict
