We have several very occasional use Visualforce pages that we run in Classic by entering the URL:


I presume there is no way to do this in Lightning Experience? So telling users to switch to Classic to run the pages is the way to go?

(Would be useful to be able to do this when checking if a Visualforce page works in Lightning Experience to.)


Some more Googling shows that this subject is discussed in the Developing Visualforce Pages for Lightning Experience Trailhead module. The solution for ad-hoc pages is, with Lightning Experience displayed, to execute this:

$A.get("e.force:navigateToURL").setParams({"url": "/apex/pagename"}).fire();

in the JavaScript console.

  • VM5868:1 Uncaught ReferenceError: $A is not defined at <anonymous>:1:1
    – kratos
    Jul 26 '17 at 14:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.