2

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

/apex/pagename

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.)

1 Answer 1

5

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .