I have a button on a Contact detail page, which leads to a report specific for the displayed Contact:
{!URLFOR('/00O58000004S13g', null, [pv0=Contact.Id])}
However, this does not work in Lightning, there it needs to be like this:
{!URLFOR( '/lightning/r/Report/00O58000004S13gEAC/view?fv0=' + Contact.Id )}
So how do I make one button that works in both Classic and Lightning?