Skip to content
  • Richard Mansfield's avatar
    Use clean urls in View::get_url() function · 8432ef33
    Richard Mansfield authored
    
    
    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: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
    8432ef33