getUrl()

Returns the relative URL associated with the PageReference when it was originally defined, including any query string parameters and anchors.

public String getUrl()

Type: String