Load a Quote that has an Opportunity in the Relate field. Click on the Opportunity Name and it takes you to the record view of the Opportunity.
The URL behind the link is:
Now load the same Quote, Print PDF. Let the PDF download. Hover on the Opportunity Name, the link is identical to the one above (right click copy/paste shows they are identical), correctly pointing, it seems, to the Opportunity record view but... when I click on the Opportunity Name it redirects me to the Home screen here:
Where could this redirect be coming from? And why only after printing the PDF (which of course is heavily customized at the script level).
The mystery thickens... never a dull day :)