Skip to content

API to obtain actual gadget URL. #1295

@mmarum-sugarcrm

Description

@mmarum-sugarcrm

Original author: scribe...@gmail.com (July 25, 2012 16:19:56)

Gadgets often call back to services on their own servers to perform functions. There is currently no API to obtain the source URL to the gadget. This URL can be used to build relative URLs to services which exist on the server hosting the gadget.

Henry Saputra suggests:

Need to add API to get the actual gadget URL to the gadgets.util
namespace I suppose.

Shindig currently provides the non-spec'd:

gadgets.util.getUrlParameters()['url'];

But gadget developers cannot count on this.
Is the Shindig solution acceptable? If so, this may retain backward compatibility for gadget writers already using the non-spec'd Shindig solution.

Original issue: http://code.google.com/p/opensocial-resources/issues/detail?id=1325

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions