Add get_web_link(api_link/api_object) function to LP.client in client.js

Bug #316693 reported by Gavin Panella
This bug report is a duplicate of:  Bug #316694: Add web_link property to resources. Edit Remove
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

It would be useful to be able to get the link to a human-readable
representation of an API object. The transformation is relatively
simple:

Leonard Richardson wrote:
> ... you can replace '/api/[^/]*/' with ''. We've determined that
> that's always the relationship between the web service canonical_url
> and the browser canonical_url.

It makes sense to put this transformation in LP.client.

Changed in launchpad-foundations:
importance: Undecided → High
milestone: none → 2.2.1
status: New → Triaged
Changed in launchpad-foundations:
milestone: 2.2.1 → none
importance: High → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.