Skip to content

Instantly share code, notes, and snippets.

@douglascayers
Last active August 11, 2016 03:33
Show Gist options
  • Save douglascayers/cabd1d616eba98bb28463c4c7c32348e to your computer and use it in GitHub Desktop.
Save douglascayers/cabd1d616eba98bb28463c4c7c32348e to your computer and use it in GitHub Desktop.
Visualforce page that uses javascript page redirection. In response to https://success.salesforce.com/0D53A00002oy3pv
<apex:page showHeader="false" showChat="false" sidebar="false" standardStylesheets="false">
<script type="text/javascript">
// URL must be prefixed with http:// or https://
// otherwise it will be considered a relative URL in your Salesforce instance
// e.g. https://<your_instance>.visual.force.com/apex/www.google.com
window.location = 'https://www.google.com';
</script>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment