Just to clarify, the code in my original question is part of a Trailhead exercise, Create & Edit Visualforce Pages, and supposedly adds the Lightning features to the visualforce page I was working on as part of the exercise. The instructions suggest I add the code to the javascript console not the visualforce page. The code you've provided goes in the visualforce page I created, not the javascript console for the preview page. Also, I'm not sure where the code you provided goes on my visualforce page.
This is how my preview page looks from the exercise:
And this is how it is supposed to look, it has the Lightning page components:
It's my understanding that the code provided in the exercise is supposed to recreate the Lightning look and feel, yes?
$A.get("e.force:navigateToURL").setParams(
{"url": "/apex/homeworld"}).fire();
I hope this will help you
Regards
Ashif
This is how my preview page looks from the exercise:
And this is how it is supposed to look, it has the Lightning page components:
It's my understanding that the code provided in the exercise is supposed to recreate the Lightning look and feel, yes?