[SalesForce] how to create the url in lightning for vf page

I have a vf page on that page i have a custom setting record page link that is working fine in salesforce classic but not in lightning..in Lightning i got this url when i tried that find with setup then this encoded url i got…

https://myinstancename/one/one.app?source=aloha#/setup/page?nodeId=CustomSettings&address=/setup/ui/viewCustomSettingsData.apexp?appLayout=setup%26setupid%3DCustomSettings%26sfdcIFrameHost%3Dweb%26isdtp%3Dp1%26sfdcIFrameOrigin%3Dhttps%253A%252F%252Fmyinstancename%26tour%3D%26id%3Da0558000005rNUQ

i tried to decode it but after applayout i am not able to decode that..and this url is hardcoded..how i create this url in vf page for lightning..please help me.

Best Answer

To navigate in lightning experience using URL you can use below syntax,

/one/one.app#/alohaRedirect/recordId 

OR

/one/one.app#/alohaRedirect/Vfpage 

OR ( For custom Setting record detail page)

/one/one.app#/setup/page?nodeId=CustomSettings&address=/{!customSettingRecordId}
Related Topic