function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
wesnoltewesnolte 

VisualForce page URL

Hello

 

Is there a way to programmatically get the URL for a VisualForce page? Will it always be '/apex/MyPage'?

 

Wes

JeremyKraybillJeremyKraybill

The ApexPages class provides programmatic access to PageReferences for your VF pages. Search for "ApexPages" in the VF documentation.

 

Jeremy Kraybill

Austin, TX

wesnoltewesnolte

Thanks very much.

 

Wes