So far as I've searched, this isn't possible, but any suggestions would be appreciated.
I'd like to be able to link to an organization's Storage Usage screen from the UI of my external application, but the paths for the screen are different for SFDC lightning and SFDC classic. The paths don't redirect properly, so it's difficult to know which to present. If I'm able to detect that an org is enabled for lightning, I'd be able to always expose the correct path in my UI.
- Lightning: https://login.lightning.force.com/one/one.app#/setup/CompanyResourceDisk/home
- Classic: https://login.salesforce.com/setup/org/orgstorageusage.jsp?id=:OrganizationID&setupid=CompanyResourceDisk&retURL=%2Fui%2Fsetup%2FSetup%3Fsetupid%3DDataManagement
Ultimately I'm trying to help users quickly find how many leads or contacts they have to estimate a process that will run on my side with their data.