getLocationUrl()

Retrieves the location URL of the canvas app.

Signature

public String getLocationUrl()

Return Value

Type: String

Usage

Use this method to obtain the URL of the page where the user accessed the canvas app. For example, if the user accessed your app by clicking a link on the Chatter tab, this method returns the URL of the Chatter tab, which would be similar to ‘https://MyDomainName.my.salesforce.com/_ui/core/chatter/ui/ChatterPage’.