function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sunil NandipatiSunil Nandipati 

Navigating to Content Library in Lightning using Code

I had a visualforce page which we are trying to replace for Lightning.
For each library in Salesforce, we created a custom object entry and had a link to an icon.  
Visualforce page would display all icons, and when clicked on an icon it would navigate to the Library.

Now with Lightning, we are having problems as we cannot use <a href> as stated in the lightning components developer documentation (page 706).

Recommendation is to use navigation events

Any suggestion on which one to use?

force:navigateToList - Navigates to a list view (NOT RELEVANT TO USECASE)
force:navigateToObjectHome - Navigates to an object home (NOT RELEVANT TO USECASE)
force:navigateToRelatedList - Navigates to a related list (NOT RELEVANT TO USECASE)
force:navigateToSObject - Navigates to a record 
force:navigateToURL - Navigates to a URL