[SalesForce] URL No Longer Exists when putting a VF page on page layout

I have a VF page which I wrote, and put it within the Opportunity page layout.
This is working for a long time. Starting yesterday, I'm getting this error and the Opportunity page does not load.

URL No Longer Exists

When I remove the VF page everything is fine.
This is the URL I see on the page with the URL error, where 066b0000001ZhB5 is my custom vf page

https://eu2.salesforce.com/servlet/servlet.Integration?lid=066b0000001ZhB5&ic=1&nonce=6056f865493bcca791f5a199e27562b5c8dc7b0dfbfd9be6e65f417372a9ff3c&sfdcIFrameOrigin=https%3A%2F%2Feu2.salesforce.com&isdtp=vw

Why is this suddenly happening? How do fix this?

Best Answer

It sounds like this is the new clickjacking protection in Winter 13. I think I read somewhere recently that this was defaulting on in all Orgs, but I can't recall where.

See VisualForce components in Page Layouts causing "URL No Longer Exists" error

Knowledge Article Number: 000170866

Description
Including visualforce pages in page layouts causes the page to not load and receives error: URL No Longer Exist. The URL that the error refers to is the servlet/servlet.integration trying to load the visualforce page.

Resolution
Staring with Winter 13 release salesforce added a new feature in Setup -> Security Controls -> Session Setting -> Enable clickjack protection for non-setup customer Visualforce pages.

Enabling this option will cause this error. To correct the situation simply disable this option.

Related Topic