Scenario:
I have two custom visualforce pages called, reportlist and reportshow. The reportlist does not accept parameters and opens via an app's tab in salesforce classic. The reportlist displays a table and each row has a link that opens the reportshow visualforce page with specific parameters (not URL hacks).
Also, reportshow uses third-party scripts via static resource and relies on the custom parameters for loading salesforce reports. Without parameters, reportshow will return an error.
Problem:
When I switch to lightning experience, reportlist seems to load fine, but the table links that open reportshow ends up displaying the following:
URL No Longer Exists
You have attempted to reach a URL that no longer exists on salesforce.com.
Observations:
I noticed the following difference after trying to open a reportshow:
- The fqdn is different on the error page compared to the url when I hover in the reportlist.
- The path
/apex/
became/one/
.
[Sample hover link]
[Sample URL in address bar of error page]
https://ns-dev-ed.my.salesforce.com/one/reportshow?id=00O36000002TXfdEAG&reportName=TestReport
Attempted fixes:
I tried prefixing apex/
to the href value in the reportlist, but hovering on the links now displays /apex/apex/
and clicking it leads me to URL No Longer Exists.
I also tried adding target="_blank"
and it works as expected minus the lightning experience.
Question:
How do I open the reportshow visualforce page in lightning experience?