← Back to team overview

mahara-contributors team mailing list archive

[Bug 1006634] A change has been merged

 

Reviewed:  https://reviews.mahara.org/1258
Committed: http://gitorious.org/mahara/mahara/commit/8432ef333681672608cdd83308ba5666432242b8
Submitter: Melissa Draper (melissa@xxxxxxxxxxxxxxx)
Branch:    master

commit 8432ef333681672608cdd83308ba5666432242b8
Author: Richard Mansfield <richard.mansfield@xxxxxxxxxxxxxxx>
Date:   Tue May 1 18:04:37 2012 +1200

    Use clean urls in View::get_url() function
    
    Bug #1006634, part 3
    
    The existing get_url method for views is modified to generate clean
    profile and group homepage urls.
    
    When the view is just a portfolio view, the view's urlid is appended
    to the user or group url.  This requires calls to
    View::get_owner_object() and View::get_group_object(), which are
    potentially too slow to be calling on long lists of views, but this is
    addressed in subsequent commits.
    
    A flag is also added to force get_url to use old-style urls with ids.
    Sometimes an id is required by existing javascript which parses an
    href attribute.
    
    Change-Id: I8758cf2fc566f4c523c297d015c262007f365243
    Signed-off-by: Richard Mansfield <richard.mansfield@xxxxxxxxxxxxxxx>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1006634

Title:
  Clean URLs for user profiles, group homepages, portfolio pages

Status in Mahara ePortfolio:
  In Progress

Bug description:
  An option to enable alternative clean URLs for user profiles, group
  homepages, and portfolio pages owned by users and groups. URLs will be
  chosen by their owners, will uniquely identify a page, and will be
  used in internally generated links in preference to the old-style
  links using integer id parameters.

  See
  https://wiki.mahara.org/index.php/Developer_Area/Specifications_in_Development/Clean_URLs

  This bug has three parts:
  1. Add url fields for profiles, groups, and portfolio pages, initialised using usernames, group names, and page titles, and let users edit these fields.
  2. Let profile, group homepage and portfolio page content be identified by the new field instead of by id.
  3. Use these url fields to create the links generated internally by Mahara.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1006634/+subscriptions


References