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
SFDC Forum 9SFDC Forum 9 

How to customize navigation rules of home page

Hi, 
I have customized Home page with VF in classic.
It  contains visualforce tabs.

I migrated to lightning by addind lighting style sheets tags & apex:slds.
Then created new Lightning app and added this vf to Home page of lightning app.

Now the problem is , when i click on the vf tab, it should open the workspace tab , but new window is getting opened.

Please suggest ASAP
ShirishaShirisha (Salesforce Developers) 
Hi,

Greetings!

I would suggest you to use the openTab() to open in new workspace.

Please check the sample code here:

https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_lightning_opentab.htm

Also,the below document is explaining the requirement related to yours:

https://success.salesforce.com/answers?id=9063A000000lQgfQAE

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri