Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eddywebs/ba9faa6a7db3262bbcf8d7d7aea798a5 to your computer and use it in GitHub Desktop.
Save eddywebs/ba9faa6a7db3262bbcf8d7d7aea798a5 to your computer and use it in GitHub Desktop.
//redirect a page to visualforce page
ApexPages.PageReference pg = new ApexPages.PageReference('/apex/<VisualForcePage>?id='+Contact.Id);
pg.setRedirect(true);
return pg;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment